wok-next annotate sudo/receipt @ rev 19700
unionfs-fuse: do not define function twice
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 26 10:36:51 2017 +0200 (2017-04-26) |
parents | 5d48570cca72 |
children | 9278a60d6895 |
rev | line source |
---|---|
erjo@151 | 1 # SliTaz package receipt. |
erjo@151 | 2 |
erjo@151 | 3 PACKAGE="sudo" |
devl547@16228 | 4 VERSION="1.8.10p2" |
pankso@209 | 5 CATEGORY="security" |
pascal@1137 | 6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15593 | 8 LICENSE="ISC" |
erjo@151 | 9 WEB_SITE="http://www.gratisoft.us/sudo/" |
erjo@2631 | 10 CONFIG_FILES="/etc/sudoers" |
erjo@2631 | 11 |
al@19670 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19670 | 13 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" |
al@19670 | 14 |
al@19668 | 15 BUILD_DEPENDS="gettext" |
al@19670 | 16 SIBLINGS="sudo-pam" |
al@19668 | 17 |
erjo@151 | 18 # Rules to configure and make the package. |
erjo@151 | 19 compile_rules() |
erjo@151 | 20 { |
al@19668 | 21 # Fix error and rebuild .mo |
al@19668 | 22 patch -p1 -i $stuff/sr.po.patch |
al@19668 | 23 msgfmt $src/plugins/sudoers/po/sr.po -o $src/plugins/sudoers/po/sr.mo |
al@19668 | 24 |
al@19670 | 25 ./configure \ |
al@19670 | 26 --sysconfdir=/etc \ |
al@19670 | 27 --without-pam \ |
al@19670 | 28 --with-editor=/bin/vi \ |
al@19670 | 29 --libexecdir=/usr/lib \ |
al@19670 | 30 $CONFIGURE_ARGS && |
pascal@1476 | 31 make && |
slaxemulator@8963 | 32 make install |
erjo@151 | 33 } |
erjo@151 | 34 |
erjo@151 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 36 genpkg_rules() |
erjo@151 | 37 { |
erjo@151 | 38 mkdir -p $fs/usr/lib |
erjo@13462 | 39 cp -a $install/usr/bin $fs/usr |
erjo@13462 | 40 cp -a $install/usr/sbin $fs/usr |
devl547@16228 | 41 cp -a $install/usr/lib/ $fs/usr |
erjo@13462 | 42 cp -a $install/etc $fs/ |
erjo@151 | 43 } |
erjo@151 | 44 |
erjo@1852 | 45 pre_install() |
erjo@1852 | 46 { |
llevrel@18782 | 47 if [ -f "$1/etc/sudoers" ]; then |
pascal@18730 | 48 cp "$1/etc/sudoers" "$1/etc/sudoers.bak" |
erjo@1852 | 49 fi |
erjo@1852 | 50 } |
erjo@151 | 51 |
erjo@151 | 52 post_install() |
erjo@151 | 53 { |
pascal@18730 | 54 if [ -f "$1/etc/sudoers.bak" ]; then |
pascal@18730 | 55 mv "$1/etc/sudoers" "$1/etc/sudoers-dist" |
pascal@18730 | 56 mv "$1/etc/sudoers.bak" "$1/etc/sudoers" |
erjo@1852 | 57 else |
pascal@18730 | 58 chown root.root "$1/etc/sudoers" |
pascal@18730 | 59 chmod 0440 "$1/etc/sudoers" |
erjo@1852 | 60 fi |
al@18734 | 61 } |