mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
34 lines
1 KiB
Bash
34 lines
1 KiB
Bash
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
pkgname=pptpd
|
|
pkgver=1.3.4
|
|
pkgrel=1
|
|
pkgdesc="Poptop server"
|
|
arch=(i686 x86_64)
|
|
url="http://www.poptop.org/"
|
|
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 $startdir/src/$pkgname-$pkgver
|
|
|
|
autoreconf -i
|
|
./configure --prefix=/usr --libdir=/usr/lib --exec-prefix=/usr
|
|
|
|
make || return 1
|
|
|
|
sed -i 's|install -o root|install|g' plugins/Makefile
|
|
sed -i 's|?=|=|g' plugins/Makefile
|
|
make DESTDIR=$startdir/pkg install || return 1
|
|
# [ "$CARCH" == "x86_64" ] && make prefix=$startdir/pkg install
|
|
# [ "$CARCH" == "i686" ] && make DESTDIR=$startdir/pkg install
|
|
|
|
mkdir -p $startdir/pkg/etc/ && \
|
|
echo "# Read man pptpd.conf and write your pptpd configuration here" >$startdir/pkg/etc/pptpd.conf && \
|
|
install -D -m0755 ../pptpd $startdir/pkg/etc/rc.d/pptpd
|
|
}
|