1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
%define apachk_conf_file %apachk_addon_dir/defaults Name: apachkconfig Version: 0.1 Release: alt1 Summary: A tool for maintaining addon configuration accross different versions of Apache server Group: System/Servers License: GPL Source: %name Source1: readme.en.txt Source2: %name.8 Source3: %name-defaults Requires: bash vhosts-filesystem BuildPreReq: vhosts-filesystem-devel %description Provides a simple command-line tool for maintaining the apache addon configuration (e.g /etc/httpd*/addon.d) directories by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories. %prep %__cp %SOURCE1 . %build %install ### ## Create directories # %__install -d \ %buildroot%apachk_addon_dir \ %buildroot%_sbindir \ %buildroot%_man8dir \ ### ## Real install # %__install -m700 %SOURCE0 %buildroot%_sbindir/%name %__install -m644 %SOURCE2 %buildroot%_man8dir/%name.8 %__install -m600 %SOURCE3 %buildroot%apachk_addon_dir/defaults %__subst "s:-=apachk_addon_dir=-:%apachk_addon_dir: s:-=apachk_addon_initd=-:%apachk_addon_initd: s:-=apachk_favours_dir=-:%apachk_favours_dir: " %buildroot%_sbindir/%name %files %attr(0400,root,root) %config(noreplace) %apachk_conf_file %attr(0700,root,root) %_sbindir/%name %_man8dir/* %doc readme.en.txt %changelog * Tue Jun 29 2004 Yury Konovalov <yurix@altlinux.ru> 0.1-alt1 - Initial build