summaryrefslogtreecommitdiffstats
path: root/abs/core/avahi/avahi.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/avahi/avahi.install
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/core/avahi/avahi.install')
-rw-r--r--abs/core/avahi/avahi.install42
1 files changed, 42 insertions, 0 deletions
diff --git a/abs/core/avahi/avahi.install b/abs/core/avahi/avahi.install
new file mode 100644
index 0000000..f0beca8
--- /dev/null
+++ b/abs/core/avahi/avahi.install
@@ -0,0 +1,42 @@
+post_install() {
+ echo -n "adding avahi system group... "
+ groupadd -g 84 avahi && echo "done."
+ echo -n "adding avahi system user... "
+ useradd -c "Avahi daemon" -u 84 -d / -g avahi -s /bin/false avahi \
+ && echo "done."
+ passwd -l avahi &>/dev/null
+
+ post_upgrade
+ cat << 'EOM'
+==> The following daemons may be added to DAEMONS in /etc/rc.conf:
+ -> avahi-daemon - the mdns responder, you probably want this.
+ dbus needs to be running when you start it.
+ -> avahi-dnsconfd - daemon used for peer-to-peer automatic dns
+ configuration on dhcp-less networks.
+
+==> To use some of the client applications you will have to install python.
+ -> In addition, pygtk is required for the graphical ones and
+ twisted-web for avahi-bookmarks.
+
+EOM
+}
+
+post_upgrade() {
+ true
+}
+
+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 avahi system user... "
+ userdel avahi && echo "done."
+}
+
+op=$1
+shift
+$op $*