summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/avahi/avahi.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-10-20 20:14:55 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-10-20 20:14:55 (GMT)
commitb9d63c0f958a3c9fb54bb80599e5cda600c68f91 (patch)
treef3ab43b174339f87d32b6e0ab99e761916f2e650 /abs/core-testing/avahi/avahi.install
parent917f8e0bc9dcb481b5a44c19ca8348da1e241d27 (diff)
downloadlinhes_pkgbuild-b9d63c0f958a3c9fb54bb80599e5cda600c68f91.zip
linhes_pkgbuild-b9d63c0f958a3c9fb54bb80599e5cda600c68f91.tar.gz
linhes_pkgbuild-b9d63c0f958a3c9fb54bb80599e5cda600c68f91.tar.bz2
adding avahi and missing required packages.
-dbus-python -libdeamon
Diffstat (limited to 'abs/core-testing/avahi/avahi.install')
-rw-r--r--abs/core-testing/avahi/avahi.install42
1 files changed, 42 insertions, 0 deletions
diff --git a/abs/core-testing/avahi/avahi.install b/abs/core-testing/avahi/avahi.install
new file mode 100644
index 0000000..f0beca8
--- /dev/null
+++ b/abs/core-testing/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 $*