]> git.pld-linux.org Git - packages/bopm.git/commitdiff
- add missing user/group removal
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 2 Jun 2005 16:41:11 +0000 (16:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bopm.spec -> 1.6

bopm.spec

index 3319b81ffe3f20c07978e30b256f0ccbab90c933..ecb284d477f17c569e9ce8ed92b30148cc412ee3 100644 (file)
--- a/bopm.spec
+++ b/bopm.spec
@@ -1,9 +1,8 @@
-# TODO: user/group removal
 Summary:       Open proxy monitor and blocker, designed for use with ircds
 Summary(pl):   Monitorowanie i blokowanie otwartych proxy do u¿ywania z ircd
 Name:          bopm
 Version:       3.1.2
-Release:       0.10
+Release:       0.11
 Epoch:         0
 License:       GPL
 Group:         Applications/Communications
@@ -22,6 +21,8 @@ Requires(pre):        /usr/bin/getgid
 Requires(pre): /bin/id
 Requires(pre): /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
+Requires(postun):      /usr/sbin/userdel
+Requires(postun):      /usr/sbin/groupdel
 Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -105,6 +106,12 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del %{name}
 fi
 
+%postun
+if [ "$1" = "0" ]; then
+       %userremove %{name}
+       %groupremove %{name}
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog INSTALL README bopm.conf.sample
This page took 0.23641 seconds and 4 git commands to generate.