CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
coreutils: updated to 8.19
[crossrootfs.git] / sudo / Pkgfile
CommitLineData
6cd1ef8b
VM
1# Description: Sudo (superuser do)
2# URL: http://www.sudo.ws/sudo/
5525d97b 3# Maintainer: CRUX System Team, core-ports at crux dot nu
6cd1ef8b
VM
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5
6name=sudo
54fb1c0a 7version=1.8.1p1
6cd1ef8b
VM
8release=1
9source=(http://www.sudo.ws/$name/dist/$name-$version.tar.gz)
10
11build() {
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 \
5525d97b
VM
18 --without-pam \
19 --with-logfac=auth \
20 --with-timedir=/var/lib/sudo
6cd1ef8b
VM
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
5525d97b
VM
25
26 chmod 0755 $PKG/{var,var/lib}
27 rm -r $PKG/usr/share
6cd1ef8b
VM
28 ln -sf sudo $PKG/usr/bin/sudoedit
29 ln -sf sudo.8.gz $PKG/usr/man/man8/sudoedit.8
30}