aur/nylon.install
mehani a4739149fa Nylon OE build environment package
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/archlinux-packages@6 df209809-8e4a-0410-9a64-c169741eb0fc
2007-01-12 12:53:14 +00:00

28 lines
754 B
Text

post_install() {
echo "downloading latest Nylon sources... "
cd /opt/nylon-build-stable
wget --no-parent -nv -N -r -nd -P sources http://meshcube.org/nylon/stable/sources
echo -n "adding nylon system group... "
groupadd nylon && echo "done."
chgrp -R nylon /opt/nylon-build-stable
chmod -R g+rw /opt/nylon-build-stable
cat << 'EOM'
==> To allow users to build Nylon packages, add them to the nylon group.
EOM
}
pre_remove() {
# pre_remove gets called whenever post_remove is defined.
true
}
post_remove() {
# post_remove doesn't start at a newline like the other post_* functions,
# so we'll have to make one for ourselves.
echo -n -e "\nremoving nylon system group... "
groupdel nylon && echo "done."
}
op=$1
shift
$op $*