updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ipsvd-dietlibc / PKGBUILD
blobea5c01616e3f9339f6fbfd213fd82514e7116589
1 # Contributor: Roberto Alsina <ralsina@kde.org>
2 # Maintainer: TJ Vanderpoel <tj@rubyists.com>
3 pkgname=ipsvd-dietlibc
4 provides=ipsvd
5 conflicts=ipsvd
6 pkgver=1.0.0
7 pkgrel=2
8 pkgdesc="A set of internet protocol service daemons for Unix, with ssl provided by matrixssl.  Compiled with dietlibc"
9 url="http://smarden.org/ipsvd/"
10 license=( custom )
11 makedepends=('dietlibc')
12 arch=('i686' 'x86_64')
13 source=(http://smarden.org/ipsvd/ipsvd-$pkgver.tar.gz http://ftp.debian.org/debian/pool/main/m/matrixssl/matrixssl_1.8.5.orig.tar.gz LICENSE)
14 md5sums=('82c8710e4beec3e92f3d9a616290232b'
15          '8f02eb566368e79224ed9bab6abdf3db'
16          '1af57726fa420ca9d1038b9a37d8b5af')
18 build() {
19   echo $srcdir
20   cp "$srcdir/matrixssl-1.8.5.orig/matrixssl-1-8-5-open.tar.gz" "$srcdir/net/ipsvd-$pkgver/src/matrixssl.tar.gz"
21   cd "$srcdir/net/ipsvd-$pkgver/src"
22   echo "/opt/diet/bin/diet -Os ${CC:-cc} ${CFLAGS:-Os -Wall}" > conf-cc
23   echo "/opt/diet/bin/diet -Os ${LD:-cc} ${LDFLAGS:--s}" > conf-ld
24   #patch -p3 < $startdir/src/ipsvd.patch
25   echo sslio sslsvd >command.ssl
26   make || return 1
27   install -d "$pkgdir/sbin/"
28   install -d "$pkgdir/usr/man/man8"
29   install -d "$pkgdir/usr/man/man7"
30   install -d "$pkgdir/usr/man/man5"
31   install -D "$pkgdir/../LICENSE" "$pkgdir/usr/share/licenses/ipsvd/COPYING"
33   for i in tcpsvd udpsvd ipsvd-cdb sslio sslsvd ; do
34     install -m0755 $i "$pkgdir/sbin/"
35   done
37   install -m0644 ../man/*.8 "$pkgdir/usr/man/man8"
38   install -m0644 ../man/*.7 "$pkgdir/usr/man/man7"
39   install -m0644 ../man/*.5 "$pkgdir/usr/man/man5"