[arch-commits] Commit in pptpclient/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Wed Nov 13 16:16:06 UTC 2019


    Date: Wednesday, November 13, 2019 @ 16:16:06
  Author: foutrelis
Revision: 368195

archrelease: copy trunk to staging-x86_64

Added:
  pptpclient/repos/staging-x86_64/
  pptpclient/repos/staging-x86_64/PKGBUILD
    (from rev 368194, pptpclient/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: pptpclient/repos/staging-x86_64/PKGBUILD (from rev 368194, pptpclient/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2019-11-13 16:16:06 UTC (rev 368195)
@@ -0,0 +1,39 @@
+# Maintainer:
+# Contributor: Daniel Isenmann <daniel @ archlinux.org>
+# Contributor: Mark Nikkel <mnikkel at gmail.com>
+
+pkgname=pptpclient
+pkgver=1.10.0
+pkgrel=2
+pkgdesc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP."
+arch=('x86_64')
+url="http://pptpclient.sourceforge.net/"
+license=('GPL')
+depends=('ppp' 'iproute2' 'perl')
+backup=('etc/ppp/options.pptp')
+source=("https://downloads.sourceforge.net/sourceforge/pptpclient/pptp-$pkgver.tar.gz")
+md5sums=('8d25341352fdae5ad5b36b9f18254908')
+
+prepare() {
+  cd pptp-$pkgver
+
+  # use our CFLAGS and LDFLAGS
+  sed -i -e "/CFLAGS  =/ c\CFLAGS = ${CFLAGS}" Makefile
+  sed -i -e "/LDFLAGS =/ c\LDFLAGS = ${LDFLAGS}" Makefile
+
+  # adjust ip path
+  sed -i 's#/bin/ip#/usr/bin/ip#' routing.c
+
+  # put binaries in /usr/bin
+  sed -i "/BINDIR/s#/sbin#/bin#" Makefile
+}
+
+build() {
+  cd pptp-$pkgver
+  make 
+}
+
+package() {
+  cd pptp-$pkgver
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list