summaryrefslogtreecommitdiffstats
path: root/extra/sudo/Pkgfile
blob: 8970f73d6e0145cd381531d96ad4fd1a7b5aa1f0 (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
# Description: Permet de donner des droits administrateurs aux utilisateurs normaux
# URL: http://www.gratisoft.us/sudo/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: linux-pam
# Run on: linux-pam

name=sudo
version=1.8.3p1
release=1
source=(http://www.sudo.ws/$name/dist/$name-$version.tar.gz
	sudo.pam)

build() {
	cd $name-$version
	./configure --prefix=/usr \
		--libexecdir=/usr/lib \
		--enable-noargs-shell \
		--with-env-editor \
		--with-pam \
		--with-ignore-dot \
		--with-all-insults \
		--enable-shell-sets-home
	make
	make DESTDIR=$PKG install
	install -Dm644 ../sudo.pam $PKG/etc/pam.d/sudo
	chmod 755 $PKG/var/{,lib}
}