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

Evangelos Foutras foutrelis at archlinux.org
Mon May 24 11:32:35 UTC 2021


    Date: Monday, May 24, 2021 @ 11:32:34
  Author: foutrelis
Revision: 944579

archrelease: copy trunk to community-staging-any

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

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

Copied: pppusage/repos/community-staging-any/PKGBUILD (from rev 944578, pppusage/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-05-24 11:32:34 UTC (rev 944579)
@@ -0,0 +1,32 @@
+# 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=12
+pkgdesc="Utility to monitor pppd connections"
+arch=(any)
+url="https://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 944578, pppusage/trunk/build-fix.patch)
===================================================================
--- community-staging-any/build-fix.patch	                        (rev 0)
+++ community-staging-any/build-fix.patch	2021-05-24 11:32:34 UTC (rev 944579)
@@ -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