On Friday 29 July 2005 00:26, Jan Rekorajski wrote:
> > > > # vpoldek mysql-slave -- -e mysql
> > > > vpoldek: operating on vserver mysql-slave
> > > > There are 1 package to remove:
> > > > R mysql-4.1.12-2.5
> > > > Proceed? [y/N]
> > > > Running vrpm-preload --erase --root /vservers/mysql-slave...
> > > > /var/tmp/rpm-tmp.33133[6]: /usr/lib/rpm/user_group.sh: not found
> > > > /var/tmp/rpm-tmp.33133[6]: /usr/lib/rpm/user_group.sh: not found
> > > > error: %postun(mysql-4.1.12-2.5.i686) scriptlet failed, exit status
> > > > 127 vpoldek failed on vserver 'mysql-slave' with errorcode 1
[...]
> What about rpm-scripts package or something similiar?

attached rpm-scripts patch.

needed also to move /usr/lib/rpm to that package, perhaps name it rpm-base 
instead due that move?

or as the package will contain only that user_group.sh macro, name package as 
rpm-userdel? rpm-usermod?

-- 
glen
Index: rpm.spec
===================================================================
RCS file: /cvsroot/SPECS/rpm.spec,v
retrieving revision 1.555.2.117
diff -u -r1.555.2.117 rpm.spec
--- rpm.spec	13 Sep 2005 23:15:07 -0000	1.555.2.117
+++ rpm.spec	15 Sep 2005 16:02:29 -0000
@@ -32,7 +32,7 @@
 Name:		rpm
 %define	sover	4.4
 Version:	4.4.2
-Release:	9
+Release:	9.1
 License:	GPL
 Group:		Base
 Source0:	ftp://jbj.org/pub/rpm-4.4.x/%{name}-%{version}.tar.gz
@@ -146,6 +146,7 @@
 Requires:	beecrypt >= %{beecrypt_ver}
 Requires:	popt >= %{reqpopt_ver}
 Requires:	%{name}-lib = %{version}-%{release}
+Requires:	%{name}-scripts = %{version}-%{release}
 %{!?with_static:Obsoletes:	rpm-utils-static}
 Conflicts:	glibc < 2.2.92
 # avoid SEGV caused by mixed db versions
@@ -235,6 +236,16 @@
 %description lib -l pl
 Biblioteki RPM-a.
 
+%package scripts
+Summary:	Scripts for managing user deletion from system
+Group:		Libraries
+# main package requires us and we own /usr/lib/rpm directory
+
+%description scripts
+This package contains userdel and groupdel scripts to delete users
+created by rpm packages from system.
+
+
 %package devel
 Summary:	Header files for rpm libraries
 Summary(de):	Header-Dateien für rpm Libraries
@@ -917,14 +928,12 @@
 %dir /var/lock/rpm
 /var/lock/rpm/transaction
 
-%dir %{_rpmlibdir}
 #%attr(755,root,root) %{_rpmlibdir}/rpmd
 #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
 #%attr(755,root,root) %{_rpmlibdir}/rpmk
 #%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
 
 %doc %attr(755,root,root) %{_rpmlibdir}/convertrpmrc.sh
-%attr(755,root,root) %{_rpmlibdir}/user_group.sh
 
 %attr(755,root,root) %{_bindir}/banner.sh
 
@@ -936,6 +945,11 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) /%{_lib}/librpm*-*.so
 %attr(755,root,root) %{_libdir}/librpm*-*.so
+
+%files scripts
+%defattr(644,root,root,755)
+%dir %{_rpmlibdir}
+%attr(755,root,root) %{_rpmlibdir}/user_group.sh
 
 %files devel
 %defattr(644,root,root,755)
_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to