CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
util-linux-ng: update to 2.19.1
[crossrootfs.git] / sudo / Pkgfile
1 # Description: Sudo (superuser do)
2 # URL: http://www.sudo.ws/sudo/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5
6 name=sudo
7 version=1.8.1p1
8 release=1
9 source=(http://www.sudo.ws/$name/dist/$name-$version.tar.gz)
10
11 build() {
12 cd $name-$version
13 sudo_cv_uid_t_len=10 ./configure --build=$CHOST \
14 --host=$CTARGET \
15 --prefix=/usr \
16 --libexecdir=/usr/lib \
17 --mandir=/usr/man \
18 --without-pam \
19 --with-logfac=auth \
20 --with-timedir=/var/lib/sudo
21 make
22 sed -i -e "s|STRIP=strip|STRIP=`echo $STRIP`|g" \
23 -e "s|STRIP=\${d}/strip|STRIP=`echo $STRIP`|g" install-sh
24 make DESTDIR=$PKG install
25
26 chmod 0755 $PKG/{var,var/lib}
27 rm -r $PKG/usr/share
28 ln -sf sudo $PKG/usr/bin/sudoedit
29 ln -sf sudo.8.gz $PKG/usr/man/man8/sudoedit.8
30 }