summaryrefslogtreecommitdiffstats
path: root/base/pptpd/Pkgfile
diff options
context:
space:
mode:
authorcobex4 <cobex4 at gmail dot com>2010-11-06 20:38:19 +0100
committercobex4 <cobex4 at gmail dot com>2010-11-06 20:38:19 +0100
commit2927c441e6f86447e35c8e3a760aef8315244b03 (patch)
treea1ac17abfff004e977b1f99e82673dbb56b0a6d4 /base/pptpd/Pkgfile
parent5b1b01086284b18a85e795d2ba18ec8d3d21a7e7 (diff)
downloadnutyx-pakxe-2927c441e6f86447e35c8e3a760aef8315244b03.tar.gz
nutyx-pakxe-2927c441e6f86447e35c8e3a760aef8315244b03.tar.bz2
nutyx-pakxe-2927c441e6f86447e35c8e3a760aef8315244b03.tar.xz
nutyx-pakxe-2927c441e6f86447e35c8e3a760aef8315244b03.zip
pptpd, nouveau port 1.3.4-1
Diffstat (limited to 'base/pptpd/Pkgfile')
-rw-r--r--base/pptpd/Pkgfile40
1 files changed, 40 insertions, 0 deletions
diff --git a/base/pptpd/Pkgfile b/base/pptpd/Pkgfile
new file mode 100644
index 000000000..0e6aa35d8
--- /dev/null
+++ b/base/pptpd/Pkgfile
@@ -0,0 +1,40 @@
+# Description: Serveur Poptop vpn léger et simple à mettre en place
+# URL: http://www.poptop.org/
+# Maintainer: Cobex4
+# Packager: cobex4 at gmail dot com
+
+name=pptpd
+version=1.3.4
+release=1
+source=(http://downloads.sourceforge.net/sourceforge/poptop/$name-$version.tar.gz\
+ pptpd)
+
+build() {
+ cd $name-$version
+
+ ./configure --prefix=/usr --mandir=/usr/share/man
+ make
+ make DESTDIR=$PKG install
+
+ autoreconf -i
+ ./configure --prefix=/usr --libdir=/usr/lib --exec-prefix=/usr --mandir=/usr/share
+
+ make
+ make DESTDIR=$PKG install
+
+ mkdir -p $PKG/etc/
+ echo "# Lisez le manuel et écrivé la configuration de votre pptpd ici" > $PKG/etc/pptpd.conf
+
+ # Installation du service
+ mkdir -v -p $PKG/etc/rc.d/init.d
+ mkdir -v -p $PKG/etc/rc.d/rc{0,1,3,4,5,6}.d
+ install -m755 ../pptpd $PKG/etc/rc.d/init.d/
+ ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc3.d/S20pptpd
+ ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc5.d/S20pptpd
+ ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc4.d/S20pptpd
+ ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc0.d/K90pptpd
+ ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc1.d/K90pptpd
+ ln -svf ../init.d/pptpd $PKG/etc/rc.d/rc6.d/K90pptpd
+
+
+}