packages: bacula/bacula.spec - no need to manually remove files on postun, ...

glen glen at pld-linux.org
Fri Oct 22 14:00:23 CEST 2010


Author: glen                         Date: Fri Oct 22 12:00:23 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- no need to manually remove files on postun, ghost packaging does that already

---- Files affected:
packages/bacula:
   bacula.spec (1.167 -> 1.168) 

---- Diffs:

================================================================
Index: packages/bacula/bacula.spec
diff -u packages/bacula/bacula.spec:1.167 packages/bacula/bacula.spec:1.168
--- packages/bacula/bacula.spec:1.167	Fri Oct 22 13:53:37 2010
+++ packages/bacula/bacula.spec	Fri Oct 22 14:00:17 2010
@@ -3,10 +3,6 @@
 #	- update desktop files, think about su-wrappers for console (with .desktop files)
 #	- package web admin
 #	- fix log file permissions
-#	- no longer builds:
-#make[1]: *** No rule to make target `../lib/libbac.la', needed by `bacula-dir'.  Stop.
-#make[1]: *** Waiting for unfinished jobs....
-#make[1]: Leaving directory `/home/users/glen/rpm/BUILD.x86_64-linux/bacula-5.0.2/src/dird'
 #
 # Conditional build:
 %bcond_without	console_wx		# wx-console program
@@ -32,7 +28,7 @@
 Summary(pl.UTF-8):	Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
 Name:		bacula
 Version:	5.0.3
-Release:	7
+Release:	8
 License:	AGPL v3
 Group:		Networking/Utilities
 Source0:	http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
@@ -813,33 +809,20 @@
 ln -sf "make_%{1}_catalog_backup" %{_libexecdir}/%{name}/make_catalog_backup || : \
 %service bacula-dir restart "Bacula Director daemon"
 
-%define db_postun() \
-/sbin/ldconfig \
-if [ "$1" = "0" ]; then \
-	for f in %{_libexecdir}/%{name}/*_bacula_*; do \
-		if [ -L "$f" -a ! -e "$f" ]; then \
-			rm "$f" \
-		fi \
-	done \
-fi
-
 %post db-postgresql
 %db_post postgresql
 
-%postun db-postgresql
-%db_postun postgresql
+%postun db-postgresql -p /sbin/ldconfig
 
 %post db-mysql
 %db_post mysql
 
-%postun db-mysql
-%db_postun mysql
+%postun db-mysql -p /sbin/ldconfig
 
 %post db-sqlite3
 %db_post sqlite3
 
-%postun db-sqlite3
-%db_postun sqlite3
+%postun db-sqlite3 -p /sbin/ldconfig
 
 # dbi backend is different, as it is not bound with a specific db engine
 %post db-dbi
@@ -1084,6 +1067,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.168  2010/10/22 12:00:17  glen
+- no need to manually remove files on postun, ghost packaging does that already
+
 Revision 1.167  2010/10/22 11:53:37  glen
 - restore make_catalog_backup and make_catalog_backup,
   they were not installed due broken makefile & disabled sqlite backend (r1.166 fixes the install error)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bacula/bacula.spec?r1=1.167&r2=1.168&f=u



More information about the pld-cvs-commit mailing list