mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
network/pptpd: Updated for version 1.3.4
This commit is contained in:
parent
96ab0ba0df
commit
6c021c6765
6 changed files with 21 additions and 16 deletions
|
@ -1,3 +1,2 @@
|
|||
pptpd (PoPToP) is a Point to Point Tunneling Server that
|
||||
provides a Virtual Private Networking (VPN) server which
|
||||
is compatible with Microsoft VPN clients.
|
||||
pptpd (PoPToP) is a Point to Point Tunneling Server that provides a Virtual
|
||||
Private Networking (VPN) server which is compatible with Microsoft VPN clients.
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
$(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
|
||||
|
||||
-LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd
|
||||
+LIBDIR ?= $(prefix)/lib/pptpd
|
||||
+LIBDIR ?= $(prefix)/@baselibdir@/pptpd
|
||||
|
||||
install: $(PLUGINS)
|
||||
- $(INSTALL) -d $(LIBDIR)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for pptpd
|
||||
|
||||
# Copyright 2007,2008 Robby Workman, Northport, Alabama, USA
|
||||
# Copyright 2007-2009 Robby Workman, Northport, Alabama, USA
|
||||
|
||||
# All rights reserved.
|
||||
#
|
||||
|
@ -36,10 +36,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -59,10 +62,12 @@ find . \
|
|||
|
||||
# Fix the plugins Makefile
|
||||
patch -p1 < $CWD/plugins_Makefile.diff
|
||||
sed -i "s%@baselibdir@%$lib${LIBDIRSUFFIX}%" plugins/Makefile
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
|
@ -87,8 +92,9 @@ cat samples/options.pptpd > $PKG/etc/ppp/options.pptpd.new
|
|||
cat samples/chap-secrets > $PKG/etc/ppp/chap-secrets.new
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO \
|
||||
html tools debian $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO html tools debian \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
find $PKG/usr/doc -type f -exec chmod 0644 {} \;
|
||||
find $PKG/usr/doc -type d -name 'CVS' | xargs rm -rf
|
||||
|
||||
|
@ -97,4 +103,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
|||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="pptpd"
|
|||
VERSION="1.3.4"
|
||||
HOMEPAGE="http://www.poptop.org/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/poptop/pptpd-1.3.4.tar.gz"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="b38df9c431041922c997c1148bedf591"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Robby Workman"
|
||||
EMAIL="rw@rlworkman.net"
|
||||
APPROVED="David Somero"
|
Loading…
Reference in a new issue