Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=e96969408ff76d1cd98aa2cbe3f32a462baea4d8
commit e96969408ff76d1cd98aa2cbe3f32a462baea4d8 Author: James Buren <r...@frugalware.org> Date: Tue Jun 5 01:04:14 2012 -0500 syslog-ng-3.3.5-2-x86_64 * convert to use systemd schema diff --git a/source/apps-extra/syslog-ng/FrugalBuild b/source/apps-extra/syslog-ng/FrugalBuild index c1acae7..0d580a8 100644 --- a/source/apps-extra/syslog-ng/FrugalBuild +++ b/source/apps-extra/syslog-ng/FrugalBuild @@ -4,7 +4,7 @@ pkgname=syslog-ng pkgver=3.3.5 -pkgrel=1 +pkgrel=2 pkgdesc="A flexible system logging tool" url="http://www.balabit.com/products/syslog_ng/" depends=('glib2' 'eventlog>=0.2.7' 'libnet>=1.1.2.1-4' 'systemd>=38') @@ -23,12 +23,16 @@ sha1sums=('0c8b85079b60c68c4279bcd4124b1e3c6358407b' \ '2876e61d5e04f6117967da728bcb1d3b6785532f' \ '3f8bd9c46c930e5d0c2c3fd06e7a81f0cdc244f0') +_F_systemd_units=(syslog-ng=e) +Finclude systemd + build() { Fbuild --disable-tcp-wrapper --disable-spoof-source --enable-systemd Ffile /etc/syslog-ng.conf Ffile /etc/logrotate.d/syslog-ng Ffile /lib/systemd/system/syslog-ng.service Fln /lib/systemd/system/syslog-ng.service /etc/systemd/system/syslog.service + Fgenscriptlet } # optimization OK diff --git a/source/apps-extra/syslog-ng/syslog-ng.install b/source/apps-extra/syslog-ng/syslog-ng.install deleted file mode 100644 index 312e966..0000000 --- a/source/apps-extra/syslog-ng/syslog-ng.install +++ /dev/null @@ -1,29 +0,0 @@ -post_install() -{ - systemctl enable syslog-ng.service >/dev/null 2>&1 -} - -pre_remove() -{ - systemctl --no-reload disable syslog-ng.service >/dev/null 2>&1 - systemctl stop syslog-ng.service >/dev/null 2>&1 -} - -post_remove() -{ - systemctl daemon-reload >/dev/null 2>&1 -} - -post_upgrade() -{ - systemctl daemon-reload >/dev/null 2>&1 - if [ `vercmp $2 3.2.4-1` -lt 0 ] ; then - if chkconfig rc.syslog-ng; then - post_install - fi - fi -} - -op=$1 -shift -$op $* _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git