wok-next view sudo/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents 5d48570cca72
children 9278a60d6895
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.10p2"
5 CATEGORY="security"
6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="http://www.gratisoft.us/sudo/"
10 CONFIG_FILES="/etc/sudoers"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
15 BUILD_DEPENDS="gettext"
16 SIBLINGS="sudo-pam"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Fix error and rebuild .mo
22 patch -p1 -i $stuff/sr.po.patch
23 msgfmt $src/plugins/sudoers/po/sr.po -o $src/plugins/sudoers/po/sr.mo
25 ./configure \
26 --sysconfdir=/etc \
27 --without-pam \
28 --with-editor=/bin/vi \
29 --libexecdir=/usr/lib \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/lib/ $fs/usr
42 cp -a $install/etc $fs/
43 }
45 pre_install()
46 {
47 if [ -f "$1/etc/sudoers" ]; then
48 cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
49 fi
50 }
52 post_install()
53 {
54 if [ -f "$1/etc/sudoers.bak" ]; then
55 mv "$1/etc/sudoers" "$1/etc/sudoers-dist"
56 mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
57 else
58 chown root.root "$1/etc/sudoers"
59 chmod 0440 "$1/etc/sudoers"
60 fi
61 }