summaryrefslogtreecommitdiffstats
path: root/base/pptpd/Pkgfile
diff options
context:
space:
mode:
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
+
+
+}