summaryrefslogtreecommitdiffstats
path: root/shadow/Pkgfile
blob: 6d4e55a80b4d576a8b7eb596762cad1e710578c1 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
description="Shadow password file utilities."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://pkg-shadow.alioth.debian.org/"
depends=()

name=shadow
version=4.1.4.2
release=1
source=(ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$name-$version.tar.bz2 pwck login.defs)
build () 
{ 
	cd $name-$version;
	# FIXME: Problème de portabilité ?
	if [[ "$CBUILD" != "$CHOST" ]]; then
		echo "ac_cv_func_setpgrp_void=yes" > config.cache
	fi
	./configure \
		${CBUILD:+--build=${CBUILD}} \
		${CHOST:+--host=${CHOST}} \
		--prefix=$prefix \
		--mandir=$mandir \
		--sysconfdir=$sysconfdir \
		--disable-shared \
		--disable-shadowgrp \
		$(use_enable nls) \
		--without-selinux \
		--without-libpam \
		--without-audit \
		--cache-file=config.cache;
	make;
	make DESTDIR=$PKG install;
	install -d $PKG/etc/cron/daily $PKG/var/log;
	install -m 644 $SRC/login.defs $PKG/etc;
	install -m 755 $SRC/pwck $PKG/etc/cron/daily;
	mv $PKG/bin/{su,groups} $PKG/usr/bin;
	touch $PKG/var/log/{lastlog,faillog};
	rm -r \
		$PKG/usr/bin/gpasswd \
		$PKG$mandir/man1/gpasswd.1 \
		$PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \
		$PKG/usr/sbin/{newusers,pwconv,pwunconv} \
		$PKG$mandir/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \
		$PKG$mandir/man8/{newusers.8,pwconv.8,pwunconv.8} \
		$PKG$mandir/man5/gshadow.5 \
		$PKG$mandir/man3 \
		$PKG/etc/{login.access,limits,default}
}