xbps-src: require sudo to build packages.

The reason is that fakeroot can't read files that have restrictive
perms and you'd have to change them before the src installation, and
restoring them at binpkg pre-installation.

I prefer to avoid all this and build the pkg with appropiate perms.

--HG--
extra : convert_revision : 8a5086049ab575962913eda0cb2ace0c211b97f1
This commit is contained in:
Juan RP
2009-02-16 17:36:21 +01:00
parent 4094879d4d
commit 1802997b0b
8 changed files with 14 additions and 13 deletions

View File

@@ -32,8 +32,4 @@ session optional pam_xauth.so
session required pam_env.so
session required pam_unix.so
_EOF
chmod 644 $destdir/etc/pam.d/sudo
chmod 644 $destdir/usr/libexec/sudo/sudo_noexec.so
chmod 755 $destdir/usr/bin/sudo* $destdir/usr/sbin/visudo
chmod 644 $destdir/etc/sudoers
}