[arch-commits] Commit in pptpd/repos (5 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jul 7 20:20:25 UTC 2020
Date: Tuesday, July 7, 2020 @ 20:20:24
Author: foutrelis
Revision: 660223
archrelease: copy trunk to community-staging-x86_64
Added:
pptpd/repos/community-staging-x86_64/
pptpd/repos/community-staging-x86_64/ChangeLog
(from rev 660222, pptpd/trunk/ChangeLog)
pptpd/repos/community-staging-x86_64/PKGBUILD
(from rev 660222, pptpd/trunk/PKGBUILD)
pptpd/repos/community-staging-x86_64/pptpd.service
(from rev 660222, pptpd/trunk/pptpd.service)
pptpd/repos/community-staging-x86_64/unrecognized-opt.patch
(from rev 660222, pptpd/trunk/unrecognized-opt.patch)
------------------------+
ChangeLog | 3 ++
PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++++
pptpd.service | 10 +++++++++
unrecognized-opt.patch | 13 ++++++++++++
4 files changed, 76 insertions(+)
Copied: pptpd/repos/community-staging-x86_64/ChangeLog (from rev 660222, pptpd/trunk/ChangeLog)
===================================================================
--- community-staging-x86_64/ChangeLog (rev 0)
+++ community-staging-x86_64/ChangeLog 2020-07-07 20:20:24 UTC (rev 660223)
@@ -0,0 +1,3 @@
+2007-06-29 tardo <tardo at nagi-fanboi.net>
+* Built for x86_64
+* Added autoreconf to help with proper installation of libs
Copied: pptpd/repos/community-staging-x86_64/PKGBUILD (from rev 660222, pptpd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 20:20:24 UTC (rev 660223)
@@ -0,0 +1,50 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=pptpd
+pkgver=1.4.0
+pkgrel=3
+pkgdesc="Poptop server"
+arch=(x86_64)
+url="http://poptop.sourceforge.net/"
+license=('GPL')
+depends=('ppp')
+backup=(etc/pptpd.conf)
+validpgpkeys=('A602F7C9A42CB3B54634A8826E6470BFAE2466C0')
+source=(https://downloads.sourceforge.net/sourceforge/poptop/pptpd-$pkgver.tar.gz{,.asc}
+ pptpd.service
+ unrecognized-opt.patch)
+sha256sums=('8fcd8b8a42de2af59e9fe8cbaa9f894045c977f4d038bbd6346a8522bb7f06c0'
+ 'SKIP'
+ 'c9ba10acd0db041da079f1e3376b65f2f867b90b458a13ff228bfc76c05eb325'
+ '6ccca4806367f370a001e29a9053fbdcdd43a68664691150102c4e788f1fc8dc')
+
+build() {
+ local _pppver=`pacman -Q ppp`
+ _pppver=${_pppver%-*}
+ _pppver=${_pppver#ppp }
+
+ cd "$srcdir"/$pkgname-$pkgver
+# patch -p1 <"$srcdir"/unrecognized-opt.patch
+ sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADER|g' configure.in
+ autoreconf -i
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --sbindir=/usr/bin \
+ --exec-prefix=/usr \
+ --mandir=/usr/share/man
+ sed -i "s|#define VERSION.*|#define VERSION \"${_pppver}\"|" plugins/patchlevel.h
+ make
+ sed -i 's|install -o root|install|g' plugins/Makefile
+ sed -i 's|?=|=|g' plugins/Makefile
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ mkdir -p "$pkgdir"/etc/
+ echo -e "# Read man pptpd.conf, see samples in /usr/share/doc/pptpd\n# and write your pptpd configuration here" >"$pkgdir"/etc/pptpd.conf
+ install -Dm0644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+ mkdir -p "$pkgdir"/usr/share/doc/pptpd
+ cp -a samples "$pkgdir"/usr/share/doc/pptpd/
+}
Copied: pptpd/repos/community-staging-x86_64/pptpd.service (from rev 660222, pptpd/trunk/pptpd.service)
===================================================================
--- community-staging-x86_64/pptpd.service (rev 0)
+++ community-staging-x86_64/pptpd.service 2020-07-07 20:20:24 UTC (rev 660223)
@@ -0,0 +1,10 @@
+[Unit]
+Description=PPTP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/pptpd -c /etc/pptpd.conf -p /var/run/pptpd.pid -f
+StandardOutput=null
+
+[Install]
+WantedBy=multi-user.target
Copied: pptpd/repos/community-staging-x86_64/unrecognized-opt.patch (from rev 660222, pptpd/trunk/unrecognized-opt.patch)
===================================================================
--- community-staging-x86_64/unrecognized-opt.patch (rev 0)
+++ community-staging-x86_64/unrecognized-opt.patch 2020-07-07 20:20:24 UTC (rev 660223)
@@ -0,0 +1,13 @@
+diff -wbBur pptpd-1.3.4/pptpctrl.c pptpd-1.3.4.my/pptpctrl.c
+--- pptpd-1.3.4/pptpctrl.c 2006-12-08 03:01:40.000000000 +0300
++++ pptpd-1.3.4.my/pptpctrl.c 2012-05-09 21:13:30.000000000 +0400
+@@ -759,8 +759,8 @@
+ syslog(LOG_DEBUG, "CTRL (PPPD Launcher): remote address = %s", pppaddrs[1]);
+ }
+
+- if (*pppaddrs[0] || *pppaddrs[1]) {
+ char pppInterfaceIPs[33];
++ if (*pppaddrs[0] || *pppaddrs[1]) {
+ sprintf(pppInterfaceIPs, "%s:%s", pppaddrs[0], pppaddrs[1]);
+ pppd_argv[an++] = pppInterfaceIPs;
+ }
More information about the arch-commits
mailing list