Package sqlgrey: Specfile
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | # useful defaults %define name sqlgrey %define ver 1.6.8 %define rel alt2 %define sqlgrey_admin mailadm %define sqlgrey_owner sqlgrey %define ROOT %_localstatedir/%name Summary: SQLgrey is a postfix grey-listing policy service Name: %name Version: %ver Release: %rel License: GPL Url: http://sqlgrey.sourceforge.net Group: System/Servers Source0: %name-%ver.tar.bz2 Source1: %name-alt-init Patch: %name-alt-conf.patch BuildArch: noarch # Automatically added by buildreq on Sat Jun 25 2005 (-ba) BuildRequires: less perl-DBI perl-Date-Calc perl-Net-Server perldoc Requires: perl-DBD-SQLite %description SQLgrey is a Postfix grey-listing policy service with auto-white-listing written in Perl with SQL database as storage backend. Greylisting stops 50 to 90 % junk mails (spam and virus) before they reach your Postfix server (saves BW, user time and CPU time). %prep %setup %patch -p1 %build %make_build %install %makeinstall ROOTDIR=%buildroot %__install -p -m755 -D %SOURCE1 %buildroot%_initdir/%name %__mkdir_p %buildroot%ROOT %__mkdir_p %buildroot%_tmpfilesdir for i in %buildroot%_sysconfdir/%name/clients_*; do >"%buildroot%_sysconfdir/%name/`basename $i`.local"; done # create tmpfiles.conf cat >%buildroot%_tmpfilesdir/%name.conf<<END d /run/%name 0750 %sqlgrey_owner %sqlgrey_admin - END %pre /usr/sbin/groupadd -r -f %sqlgrey_owner /usr/sbin/groupadd -r -f %sqlgrey_admin /usr/sbin/useradd -r -n -g %name -d %ROOT -s /dev/null -c %name %name >/dev/null 2>&1 ||: %post if [ $1 = 1 ]; then /sbin/chkconfig --add %name fi if [ $1 -ge 2 ]; then %_initdir/%name condrestart fi %preun if [ $1 = 0 ]; then %_initdir/%name condstop /sbin/chkconfig --del %name %__rm -f %ROOT/* fi %files %_initrddir/sqlgrey %_tmpfilesdir/%name.conf %_sbindir/sqlgrey %_sbindir/update_sqlgrey_config %_bindir/sqlgrey-logstats.pl %_man1dir/* %doc README* HOWTO Changelog FAQ TODO %attr(750,%sqlgrey_owner,%sqlgrey_admin) %_sysconfdir/%name %attr(640,%sqlgrey_owner,%sqlgrey_admin) %config(noreplace) %_sysconfdir/%name/%name.conf %attr(750,%sqlgrey_owner,%sqlgrey_owner) %ROOT %changelog * Sat Nov 30 2019 Anton Midyukov <antohami@altlinux.org> 1.6.8-alt2 - Replace sqlgrey.pid to /run/sqlgrey/ (Closes: 37555) * Fri Nov 06 2009 Afanasov Dmitry <ender@altlinux.org> 1.6.8-alt1 - New upstream. * Sat Oct 29 2005 LAKostis <lakostis at altlinux.ru> 1.6.7-alt1 - New upstream. * Sat Aug 06 2005 LAKostis <lakostis at altlinux.ru> 1.6.5-alt1 - New upstream. * Sat Jun 25 2005 LAKostis <lakostis at altlinux.ru> 1.6.1-alt1 - New upstream. - Some init script tweaks. - Update BuildRequires. - Add upgrade handling. * Sun Mar 06 2005 LAKostis <lakostis at altlinux.ru> 1.4.8-alt1 - New upstream. * Wed Feb 16 2005 LAKostis <lakostis at altlinux.ru> 1.4.3-alt1 - initial build for Sisyphus. |