diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/pptpd |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/pptpd')
-rw-r--r-- | community/pptpd/ChangeLog | 3 | ||||
-rw-r--r-- | community/pptpd/PKGBUILD | 33 | ||||
-rwxr-xr-x | community/pptpd/pptpd | 35 |
3 files changed, 71 insertions, 0 deletions
diff --git a/community/pptpd/ChangeLog b/community/pptpd/ChangeLog new file mode 100644 index 000000000..53b159c09 --- /dev/null +++ b/community/pptpd/ChangeLog @@ -0,0 +1,3 @@ +2007-06-29 tardo <tardo@nagi-fanboi.net> +* Built for x86_64 +* Added autoreconf to help with proper installation of libs diff --git a/community/pptpd/PKGBUILD b/community/pptpd/PKGBUILD new file mode 100644 index 000000000..04f5dbcb6 --- /dev/null +++ b/community/pptpd/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 31992 2010-11-08 21:12:41Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=pptpd +pkgver=1.3.4 +pkgrel=3 +pkgdesc="Poptop server" +arch=(i686 x86_64) +url="http://poptop.sourceforge.net/" +license=('GPL') +depends=(ppp glibc) +backup=(etc/pptpd.conf) +source=(http://downloads.sourceforge.net/sourceforge/poptop/pptpd-$pkgver.tar.gz + pptpd) +md5sums=('b38df9c431041922c997c1148bedf591' + 'e09f81beb5d59a0fdfba94e3a60d992b') + +build() { + cd $srcdir/$pkgname-$pkgver + + autoreconf -i + ./configure --prefix=/usr --libdir=/usr/lib --exec-prefix=/usr --mandir=/usr/share + + make + + sed -i 's|install -o root|install|g' plugins/Makefile + sed -i 's|?=|=|g' plugins/Makefile + make DESTDIR=$pkgdir install + + mkdir -p $pkgdir/etc/ + echo "# Read man pptpd.conf and write your pptpd configuration here" >$pkgdir/etc/pptpd.conf + install -D -m0755 ../pptpd $pkgdir/etc/rc.d/pptpd +} diff --git a/community/pptpd/pptpd b/community/pptpd/pptpd new file mode 100755 index 000000000..08c4de496 --- /dev/null +++ b/community/pptpd/pptpd @@ -0,0 +1,35 @@ +#!/bin/bash + +# general config +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting PPTP Daemon" + pptpd -c /etc/pptpd.conf -p /var/run/pptpd.pid + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon pptpd + stat_done + fi + ;; + stop) + stat_busy "Stopping PPTP Daemon" + kill `cat /var/run/pptpd.pid` + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon pptpd + stat_done + fi + ;; + restart) + $0 stop + sleep 3 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac |