summaryrefslogtreecommitdiff
path: root/community/quagga/quagga.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/quagga/quagga.install')
-rw-r--r--community/quagga/quagga.install36
1 files changed, 0 insertions, 36 deletions
diff --git a/community/quagga/quagga.install b/community/quagga/quagga.install
deleted file mode 100644
index c5d88b976..000000000
--- a/community/quagga/quagga.install
+++ /dev/null
@@ -1,36 +0,0 @@
-infodir=/usr/share/info
-filelist=(quagga.info quagga.info-1 quagga.info-2)
-
-post_install() {
- groupadd -r quagga
- useradd -MNr -s /bin/false -d /run/quagga -g quagga quagga && passwd -l quagga &>/dev/null
- install -d -m 750 -o quagga -g quagga /{run,etc,var/log}/quagga
- post_upgrade
-}
-
-post_upgrade() {
- if [[ -x /usr/bin/install-info ]]; then
- for file in ${filelist[@]}; do
- install-info $infodir/$file.gz $infodir/dir 2> /dev/null
- done
- fi
-}
-
-pre_remove() {
- for d in zebra ripd ripngd bgpd ospfd ospf6d isisd; do
- /etc/rc.d/$d stop &>/dev/null
- done
- if [[ -x /usr/bin/install-info ]]; then
- for file in ${filelist[@]}; do
- install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
- done
- fi
-}
-
-post_remove() {
- userdel quagga &>/dev/null
- groupdel quagga &>/dev/null
- rmdir /{etc,var/log}/quagga
-}
-
-# vim: ft=sh ts=2 sw=2 et: