SPECS: xorg-app-xfs.spec - added missing user/group/chkconfig scri...
qboosh
qboosh at pld-linux.org
Sun Apr 16 14:55:36 CEST 2006
Author: qboosh Date: Sun Apr 16 12:55:36 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added missing user/group/chkconfig scripts; release 1
---- Files affected:
SPECS:
xorg-app-xfs.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/xorg-app-xfs.spec
diff -u SPECS/xorg-app-xfs.spec:1.12 SPECS/xorg-app-xfs.spec:1.13
--- SPECS/xorg-app-xfs.spec:1.12 Fri Feb 3 15:53:05 2006
+++ SPECS/xorg-app-xfs.spec Sun Apr 16 14:55:31 2006
@@ -5,7 +5,7 @@
Summary(uk): ćĎÎÔÓĹŇ×ĹŇ ÄĚŃ X Window System
Name: xorg-app-xfs
Version: 1.0.1
-Release: 0.1
+Release: 1
License: MIT
Group: X11/Applications
Source0: http://xorg.freedesktop.org/releases/X11R7.0/src/app/xfs-%{version}.tar.bz2
@@ -18,9 +18,20 @@
BuildRequires: autoconf >= 2.57
BuildRequires: automake
BuildRequires: pkgconfig >= 1:0.19
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: xorg-lib-libFS-devel
BuildRequires: xorg-lib-libXfont-devel
BuildRequires: xorg-util-util-macros >= 0.99.2
+Requires(post,preun): /sbin/chkconfig
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires: rc-scripts
+Provides: group(xfs)
+Provides: user(xfs)
Obsoletes: X11-xfs
Obsoletes: XFree86-xfs
Obsoletes: xfs
@@ -77,15 +88,45 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+%groupadd -P %{name}-xfs -g 56 -r -f xfs
+%useradd -P %{name}-xfs -u 56 -r -d /etc/X11/fs -s /bin/false -c "X Font Server" -g xfs xfs
+
+%post
+/sbin/chkconfig --add xfs
+%service xfs restart "font server"
+
+%preun
+if [ "$1" = "0" ]; then
+ %service xfs stop
+ /sbin/chkconfig --del xfs
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+ %userremove xfs
+ %groupremove xfs
+fi
+
+%triggerpostun -- xfs
+%groupadd -P %{name}-xfs -g 56 -r -f xfs
+%useradd -P %{name}-xfs -u 56 -r -d /etc/X11/fs -s /bin/false -c "X Font Server" -g xfs xfs
+/sbin/chkconfig --add xfs
+/sbin/service xfs start >&2
+
+%triggerpostun -- X11-xfs
+/sbin/chkconfig --add xfs
+/sbin/service xfs start >&2
+
%files
%defattr(644,root,root,755)
%doc COPYING ChangeLog README
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/xfs
%dir %{_sysconfdir}/X11/fs
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/fs/config
%attr(754,root,root) /etc/rc.d/init.d/xfs
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xfs
-%{_mandir}/man1/*.1x*
+%{_mandir}/man1/xfs.1x*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -93,6 +134,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2006/04/16 12:55:31 qboosh
+- added missing user/group/chkconfig scripts; release 1
+
Revision 1.12 2006/02/03 14:53:05 qboosh
- changed config dir to /etc/X11/fs
- merged xfs.{config,init,sysconfig} files from monolith
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/xorg-app-xfs.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list