[arch-commits] Commit in pppusage/repos (3 files)

Florian Pritz bluewind at archlinux.org
Thu Jun 1 08:49:50 UTC 2017


    Date: Thursday, June 1, 2017 @ 08:49:49
  Author: bluewind
Revision: 231802

archrelease: copy trunk to community-staging-any

Added:
  pppusage/repos/community-staging-any/
  pppusage/repos/community-staging-any/PKGBUILD
    (from rev 231801, pppusage/trunk/PKGBUILD)
  pppusage/repos/community-staging-any/build-fix.patch
    (from rev 231801, pppusage/trunk/build-fix.patch)

-----------------+
 PKGBUILD        |   33 +++++++++++++++++++++++++++++++++
 build-fix.patch |   12 ++++++++++++
 2 files changed, 45 insertions(+)

Copied: pppusage/repos/community-staging-any/PKGBUILD (from rev 231801, pppusage/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2017-06-01 08:49:49 UTC (rev 231802)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=pppusage
+pkgver=0.2.5
+pkgrel=7
+pkgdesc="Utility to monitor pppd connections"
+arch=(any)
+url="http://www.jhweiss.de/software/pppusage.html"
+license=("GPL")
+depends=(perl ppp cron)
+makedepends=()
+backup=(etc/pppusagerc)
+#source=(ftp://ftp.jhweiss.de/pub/users/weiss/pppusage/pppusage-$pkgver.tar.gz
+source=(https://arch.p5n.pp.ru/~sergej/dl/2012/pppusage-$pkgver.tar.gz
+        build-fix.patch)
+sha256sums=('24d0390671ba000ddae2cc56b62064fcc55d5868693c46b116244de6c01233b8'
+            '71918a98d4ff834437eed110ea81215ddf04d18bdce2939c2170148ba29f086e')
+
+build() {
+  cd "$srcdir"/pppusage-$pkgver
+  patch -Np1 <../build-fix.patch
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+package() {
+  cd "$srcdir"/pppusage-$pkgver
+  make DESTDIR="$pkgdir" install
+  rm "$pkgdir"/usr/lib/perl5/core_perl/perllocal.pod
+  find "$pkgdir" -name '.packlist' -exec rm {} \;
+}

Copied: pppusage/repos/community-staging-any/build-fix.patch (from rev 231801, pppusage/trunk/build-fix.patch)
===================================================================
--- community-staging-any/build-fix.patch	                        (rev 0)
+++ community-staging-any/build-fix.patch	2017-06-01 08:49:49 UTC (rev 231802)
@@ -0,0 +1,12 @@
+diff -wbBur pppusage-0.2.5/Makefile.PL pppusage-0.2.5.my/Makefile.PL
+--- pppusage-0.2.5/Makefile.PL	2003-12-20 00:56:32.000000000 +0300
++++ pppusage-0.2.5.my/Makefile.PL	2007-01-19 18:27:14.000000000 +0300
+@@ -107,7 +107,7 @@
+ 		bin/pppusage.raw > bin/pppusage
+ 
+ inst_conf: etc/pppusagerc
+-	test -f $(SYSCONFDIR)/pppusagerc || cp etc/pppusagerc $(SYSCONFDIR)/
++	test -f $(SYSCONFDIR)/pppusagerc || install -D -m0644 etc/pppusagerc $(DESTDIR)$(SYSCONFDIR)/pppusagerc
+ 
+ clean_bin:
+ 	rm -f bin/pppusage



More information about the arch-commits mailing list