summaryrefslogtreecommitdiff
path: root/community/pptpd/PKGBUILD
blob: 9d53737377493575e34a4330a47e05efa35b1bd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 'mips64el')
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
}