Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bee-files/shadow.be0
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
67 lines (47 sloc)
1.67 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env beesh | |
# BEE_VERSION shadow-4.12.3-0 | |
#SRCURL[0]="https://github.com/shadow-maint/shadow/releases/download/${PKGVERSION}/shadow-${PKGVERSION}.tar.gz" | |
SRCURL[0]="https://beehive.molgen.mpg.de/533afc1c1c0a73be1545f453a2b3c779/shadow-4.12.3.tar.gz" | |
# PATCHURL+=() | |
# build_in_sourcedir | |
# sourcesubdir_append src | |
#mee_extract() { | |
# bee_extract "${@}" | |
#} | |
#mee_patch() { | |
# bee_patch "${@}" | |
#} | |
mee_configure() { | |
bee_configure \ | |
--disable-nls | |
} | |
#mee_build() { | |
# bee_build | |
#} | |
mee_install() { | |
bee_install | |
# I guess this is a bug in Makefile.am, because subdir "man" is | |
# only included with ENABLE_REGENERATE_MAN (--enable-man) | |
( cd man ; bee_install ) | |
# Do not overwrite our configs | |
mv ${D}${SYSCONFDIR}/login.defs ${D}${SYSCONFDIR}/login.defs.sample | |
mv ${D}${SYSCONFDIR}/pam.d ${D}${SYSCONFDIR}/pam.d.sample | |
# we have the following from coreutils: | |
rm $D/usr/bin/groups | |
rm $D/usr/share/man/man1/groups.1 | |
# Remove tools which do not work on Mariux | |
# Some of these are setuid root and have side effects | |
# (e.g. "passwd" happily adds a record to /etc/shadow) | |
for tool in chgpasswd chpasswd groupadd groupdel groupmems groupmod \ | |
grpconv grpunconv logoutd newusers pwconv pwunconv \ | |
useradd userdel usermod vipw vigr; do | |
rm $D/usr/sbin/$tool | |
rm $D/usr/share/man/man8/$tool.8 | |
test -e $D/etc/pam.d.sample/$tool && rm $D/etc/pam.d.sample/$tool | |
done | |
for tool in chage chfn chsh expiry gpasswd passwd; do | |
rm $D/usr/bin/$tool | |
rm $D/usr/share/man/man1/$tool.1 | |
test -e $D/etc/pam.d.sample/$tool && rm $D/etc/pam.d.sample/$tool | |
done | |
} |