## $Id: minit-scripts.spec,v 1.6 2003/08/15 10:26:20 ensc Exp $ %define disclaimer Please send complains and comments to enrico.scholz@informatik.tu-chemnitz.de. Summary: Collection of minit-setup files Name: minit-scripts Version: 0.4 Release: 0.fdr.1 Epoch: 0 License: GPL BuildArch: noarch URL: http://www.tu-chemnitz.de/~ensc/minit-fedora Source0: http://www.tu-chemnitz.de/~ensc/minit-fedora/files/%{name}-%{version}.tar.bz2 Group: System Environment/Base BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: minit-tools-devel %description A collection of minit scripts. %disclaimer %include /usr/lib/minit-tools/pkgdef.inc %{!?_with_all:%{warn:***********************************************************%EOL}} %{!?_with_all:%{warn:This package supports a '--with all' option for rpmbuild%EOL}} %{!?_with_all:%{warn:which will create additional packages. Those packages will%EOL}} %{!?_with_all:%{warn:not be built by default since their dependencies can not%EOL}} %{!?_with_all:%{warn:be fulfilled by Fedora.%EOL}} %{!?_with_all:%{warn:***********************************************************%EOL%EOL}} %define reqdaemontools Requires: daemontools %define reqldap Requires: grep %minit_pkgdef atd %minit_pkgdef crond %minit_pkgdef dictd %minit_pkgdef httpd %minit_pkgdef squid %minit_pkgdef vsftpd %minit_pkgdef openldap-server -x reqldap %minit_pkgdef openssh-server %if 0%{?_with_all:1} %minit_pkgdef krb5-server -x reqdaemontools %endif %prep %setup -q -c -T %install rm -rf "$RPM_BUILD_ROOT" mkdir -p $RPM_BUILD_ROOT %__bzip2 -dc %SOURCE0 | tar xf - -C $RPM_BUILD_ROOT lst="%minit_genfilelist $RPM_BUILD_ROOT" for i in 'atd atd C' 'crond crond' 'dictd dictd C c' 'httpd httpd C' \ 'squid squid C n n c' 'vsftpd vsftpd C' \ 'openssh-server sshd C n n n C n'; do set -- $i pkg=$1 shift $lst "$@" >$pkg.lst done { $lst slapd n c $lst slurpd n c n n c } >openldap-server.lst { echo '%dir %minitdir/xtras/sshd-keygen' echo '%config %minitdir/xtras/sshd-keygen/run' echo '%minitdir/xtras/sshd-keygen/sync' } >>openssh-server.lst %if 0%{?_with_all:1} { $lst kpropd C $lst krb5kdc C } >krb5-server.lst %else rm -rf $RPM_BUILD_ROOT%minitdir/services/{kpropd,krb5kdc} %endif %check for i in *.lst; do test -r "$i" grep -v '^%defattr' "$i" >"$i.tmp" test -s "$i.tmp" done %clean rm -rf "$RPM_BUILD_ROOT" %changelog * Wed Aug 13 2003 Enrico Scholz 0:0.4-0.fdr.1 - added scripts for openssh-server * Tue Aug 12 2003 Enrico Scholz 0:0.3-0.fdr.1 - fixed a lot of 'respawn' flags which were written as 'sync' erroneously * Tue Aug 12 2003 Enrico Scholz 0:0.2-0.fdr.6 - regenerated with new genfileList script * Fri Aug 8 2003 Enrico Scholz 0:0.2-0.fdr.4 - generalized macros and moved them into a separate minit-tools-devel package which is now a BuildRequires: * Fri Aug 8 2003 Enrico Scholz 0:0.2-0.fdr.2 - provide the newline in the spec-file - s!newline!EOL! * Thu Aug 7 2003 Enrico Scholz 0:0.2-0.fdr.1 - optimized package-generation * Mon Aug 4 2003 Enrico Scholz - Initial build. ### Local Variables: ### compile-command: "cd .. && ./buildpkg minit-scripts" ### End: