1 # Contributor: Paul Colomiets pc at gafol dot net
5 pkgdesc="Change process state utility. Allows to setuid, lock, chroot, etc. before running a file (from runit)"
6 url="http://smarden.org/runit/"
9 source=( http://smarden.org/runit/runit-$pkgver.tar.gz)
10 md5sums=('63c53d313736f444a53a7451bfa76991')
14 cd $startdir/src/admin/runit-$pkgver/src
15 echo "${CC:-gcc} ${CFLAGS:--Os}" > conf-cc
16 echo "${LD:-gcc -s}" > conf-ld
17 make chpst || return 1
19 install -d $startdir/pkg/usr/sbin/
20 install -d $startdir/pkg/usr/share/man/man8
22 install -m0755 chpst $startdir/pkg/usr/sbin/
24 install -m0644 ../man/chpst.8 $startdir/pkg/usr/share/man/man8
25 install -D $startdir/src/admin/runit-$pkgver/package/COPYING $startdir/pkg/usr/share/licenses/chpst/COPYING