[arch-commits] Commit in p3scan/repos (10 files)

Sergej Pupykin spupykin at archlinux.org
Fri Feb 17 18:16:34 UTC 2017


    Date: Friday, February 17, 2017 @ 18:16:33
  Author: spupykin
Revision: 212968

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  p3scan/repos/community-staging-i686/
  p3scan/repos/community-staging-i686/PKGBUILD
    (from rev 212967, p3scan/trunk/PKGBUILD)
  p3scan/repos/community-staging-i686/p3scan.install
    (from rev 212967, p3scan/trunk/p3scan.install)
  p3scan/repos/community-staging-i686/p3scan.service
    (from rev 212967, p3scan/trunk/p3scan.service)
  p3scan/repos/community-staging-i686/p3scan.tmpfiles
    (from rev 212967, p3scan/trunk/p3scan.tmpfiles)
  p3scan/repos/community-staging-x86_64/
  p3scan/repos/community-staging-x86_64/PKGBUILD
    (from rev 212967, p3scan/trunk/PKGBUILD)
  p3scan/repos/community-staging-x86_64/p3scan.install
    (from rev 212967, p3scan/trunk/p3scan.install)
  p3scan/repos/community-staging-x86_64/p3scan.service
    (from rev 212967, p3scan/trunk/p3scan.service)
  p3scan/repos/community-staging-x86_64/p3scan.tmpfiles
    (from rev 212967, p3scan/trunk/p3scan.tmpfiles)

------------------------------------------+
 community-staging-i686/PKGBUILD          |   60 +++++++++++++++++++++++++++++
 community-staging-i686/p3scan.install    |    7 +++
 community-staging-i686/p3scan.service    |   10 ++++
 community-staging-i686/p3scan.tmpfiles   |    1 
 community-staging-x86_64/PKGBUILD        |   60 +++++++++++++++++++++++++++++
 community-staging-x86_64/p3scan.install  |    7 +++
 community-staging-x86_64/p3scan.service  |   10 ++++
 community-staging-x86_64/p3scan.tmpfiles |    1 
 8 files changed, 156 insertions(+)

Copied: p3scan/repos/community-staging-i686/PKGBUILD (from rev 212967, p3scan/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-02-17 18:16:33 UTC (rev 212968)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: v01d <phreakuencies at gmail.com>
+
+pkgname=p3scan
+pkgver=2.3.2
+pkgrel=12
+pkgdesc="Fully transparent POP3/SMTP proxy with Anti-Virus and SPAM protection"
+arch=('i686' 'x86_64')
+url="http://p3scan.sourceforge.net/"
+depends=('pcre' 'openssl')
+license=('GPL')
+install=p3scan.install
+validpgpkeys=('B312DD49453C18B45332D3D6F7F54A759AE7BF76')
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
+	"p3scan.service"
+	"p3scan.tmpfiles")
+sha256sums=('570bdf87132b23120339e247809dc2cf37c2735d504f4e1072528c04d940bb5f'
+            'SKIP'
+            '0a38655a2f944588529fdb5f47542f6e09c067a615f947cbedabced96d748190'
+            'aad248721cb3eb587795bf2e849e3076b6899ad8ecba27b19f69e12d2481a81a')
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+
+  # Fix CFLAGS and other options hardcoded in Makefiles
+  unset CFLAGS
+  sed -ri "s|^CFLAGS=-Wall( -g)? -O2|CFLAGS=-Wall $CFLAGS|" Makefile ripmime/Makefile ripmime/tnef/Makefile ripmime/ripOLE/Makefile
+  sed -ri 's|^LOCATION=.+$|LOCATION=/usr|' ripmime/Makefile
+  sed -ri 's|\$\(SYSINS\) -v -m 550 --strip p3scan \$\(PREFIX\)/sbin/|$(SYSINS) -D -v -m 550 --strip p3scan $(DESTDIR)/usr/bin/|' Makefile
+  make
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver
+
+  # Create base dirs, the Makefile assumes they're there
+  install -d "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man8 "$pkgdir"/etc/rc.d
+
+  # install with root set on "$pkgdir"
+  make DESTDIR="$pkgdir" install MANDIR=/usr/share/man/man8
+
+  # delete init script provided
+  rm -rf "$pkgdir"/etc/rc.d
+
+  # BUG?: make absolute link a relative one
+  (
+    cd "$pkgdir"/etc/p3scan
+    ln -sf p3scan-en.mail p3scan.mail
+  )
+
+  # BUG: fix .conf file (the license has C style comments, they should be conf-style comments)
+  sed -ri 's|^[/ ]\*/?|# |g' "$pkgdir"/etc/p3scan/p3scan.conf
+
+  mv "$pkgdir"/usr/doc "$pkgdir"/usr/share/
+  rm -rf "$pkgdir"/var/run
+
+  install -Dm0644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+  install -Dm0644 "$srcdir"/$pkgname.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
+}

Copied: p3scan/repos/community-staging-i686/p3scan.install (from rev 212967, p3scan/trunk/p3scan.install)
===================================================================
--- community-staging-i686/p3scan.install	                        (rev 0)
+++ community-staging-i686/p3scan.install	2017-02-17 18:16:33 UTC (rev 212968)
@@ -0,0 +1,7 @@
+post_install() {
+  echo "==> You may want an Anti-Virus program to use with p3scan. Installing clamav is recommended."
+}
+
+post_upgrade() {
+  post_install $1 $2
+}

Copied: p3scan/repos/community-staging-i686/p3scan.service (from rev 212967, p3scan/trunk/p3scan.service)
===================================================================
--- community-staging-i686/p3scan.service	                        (rev 0)
+++ community-staging-i686/p3scan.service	2017-02-17 18:16:33 UTC (rev 212968)
@@ -0,0 +1,10 @@
+[Unit]
+Description=p3scan proxy
+
+[Service]
+Type=forking
+PIDFile=/run/p3scan/p3scan.pid
+ExecStart=/usr/bin/p3scan
+
+[Install]
+WantedBy=multi-user.target

Copied: p3scan/repos/community-staging-i686/p3scan.tmpfiles (from rev 212967, p3scan/trunk/p3scan.tmpfiles)
===================================================================
--- community-staging-i686/p3scan.tmpfiles	                        (rev 0)
+++ community-staging-i686/p3scan.tmpfiles	2017-02-17 18:16:33 UTC (rev 212968)
@@ -0,0 +1 @@
+d /run/p3scan 0755 root root -

Copied: p3scan/repos/community-staging-x86_64/PKGBUILD (from rev 212967, p3scan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-02-17 18:16:33 UTC (rev 212968)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: v01d <phreakuencies at gmail.com>
+
+pkgname=p3scan
+pkgver=2.3.2
+pkgrel=12
+pkgdesc="Fully transparent POP3/SMTP proxy with Anti-Virus and SPAM protection"
+arch=('i686' 'x86_64')
+url="http://p3scan.sourceforge.net/"
+depends=('pcre' 'openssl')
+license=('GPL')
+install=p3scan.install
+validpgpkeys=('B312DD49453C18B45332D3D6F7F54A759AE7BF76')
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
+	"p3scan.service"
+	"p3scan.tmpfiles")
+sha256sums=('570bdf87132b23120339e247809dc2cf37c2735d504f4e1072528c04d940bb5f'
+            'SKIP'
+            '0a38655a2f944588529fdb5f47542f6e09c067a615f947cbedabced96d748190'
+            'aad248721cb3eb587795bf2e849e3076b6899ad8ecba27b19f69e12d2481a81a')
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+
+  # Fix CFLAGS and other options hardcoded in Makefiles
+  unset CFLAGS
+  sed -ri "s|^CFLAGS=-Wall( -g)? -O2|CFLAGS=-Wall $CFLAGS|" Makefile ripmime/Makefile ripmime/tnef/Makefile ripmime/ripOLE/Makefile
+  sed -ri 's|^LOCATION=.+$|LOCATION=/usr|' ripmime/Makefile
+  sed -ri 's|\$\(SYSINS\) -v -m 550 --strip p3scan \$\(PREFIX\)/sbin/|$(SYSINS) -D -v -m 550 --strip p3scan $(DESTDIR)/usr/bin/|' Makefile
+  make
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver
+
+  # Create base dirs, the Makefile assumes they're there
+  install -d "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man8 "$pkgdir"/etc/rc.d
+
+  # install with root set on "$pkgdir"
+  make DESTDIR="$pkgdir" install MANDIR=/usr/share/man/man8
+
+  # delete init script provided
+  rm -rf "$pkgdir"/etc/rc.d
+
+  # BUG?: make absolute link a relative one
+  (
+    cd "$pkgdir"/etc/p3scan
+    ln -sf p3scan-en.mail p3scan.mail
+  )
+
+  # BUG: fix .conf file (the license has C style comments, they should be conf-style comments)
+  sed -ri 's|^[/ ]\*/?|# |g' "$pkgdir"/etc/p3scan/p3scan.conf
+
+  mv "$pkgdir"/usr/doc "$pkgdir"/usr/share/
+  rm -rf "$pkgdir"/var/run
+
+  install -Dm0644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+  install -Dm0644 "$srcdir"/$pkgname.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
+}

Copied: p3scan/repos/community-staging-x86_64/p3scan.install (from rev 212967, p3scan/trunk/p3scan.install)
===================================================================
--- community-staging-x86_64/p3scan.install	                        (rev 0)
+++ community-staging-x86_64/p3scan.install	2017-02-17 18:16:33 UTC (rev 212968)
@@ -0,0 +1,7 @@
+post_install() {
+  echo "==> You may want an Anti-Virus program to use with p3scan. Installing clamav is recommended."
+}
+
+post_upgrade() {
+  post_install $1 $2
+}

Copied: p3scan/repos/community-staging-x86_64/p3scan.service (from rev 212967, p3scan/trunk/p3scan.service)
===================================================================
--- community-staging-x86_64/p3scan.service	                        (rev 0)
+++ community-staging-x86_64/p3scan.service	2017-02-17 18:16:33 UTC (rev 212968)
@@ -0,0 +1,10 @@
+[Unit]
+Description=p3scan proxy
+
+[Service]
+Type=forking
+PIDFile=/run/p3scan/p3scan.pid
+ExecStart=/usr/bin/p3scan
+
+[Install]
+WantedBy=multi-user.target

Copied: p3scan/repos/community-staging-x86_64/p3scan.tmpfiles (from rev 212967, p3scan/trunk/p3scan.tmpfiles)
===================================================================
--- community-staging-x86_64/p3scan.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/p3scan.tmpfiles	2017-02-17 18:16:33 UTC (rev 212968)
@@ -0,0 +1 @@
+d /run/p3scan 0755 root root -



More information about the arch-commits mailing list