Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=39ed31ce7bfa52953c03a66a7804b35c41559d82
commit 39ed31ce7bfa52953c03a66a7804b35c41559d82 Author: James Buren <[email protected]> Date: Thu Jun 7 04:16:39 2012 -0500 net-snmp-5.7.1-2-x86_64 * convert to use systemd schema diff --git a/source/network-extra/net-snmp/FrugalBuild b/source/network-extra/net-snmp/FrugalBuild index aee2be7..14df287 100644 --- a/source/network-extra/net-snmp/FrugalBuild +++ b/source/network-extra/net-snmp/FrugalBuild @@ -4,7 +4,7 @@ pkgname=net-snmp pkgver=5.7.1 -pkgrel=1 +pkgrel=2 pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6" depends=('openssl>=1.0.0' 'perl>=5.10.0') groups=('network-extra') @@ -12,9 +12,13 @@ archs=('i686' 'x86_64' 'arm') Finclude sourceforge url="http://www.net-snmp.org/" up2date="lynx -dump http://www.net-snmp.org/download.html |grep Supported -A 2 |sed -ne 's/.* \([0-9.]\+\) .*/\1/;$ p'" -source=(${source[@]} rc.snmpd) +source=(${source[@]} rc.snmpd snmpd.service) sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a' \ - 'df7a817499d12c53e9d2809f68c24fea9d3307b0') + 'df7a817499d12c53e9d2809f68c24fea9d3307b0' \ + 'b1af1c2ff4aef058bb1391b78ef40be6c9dedb16') +_F_sysvinit_units=(snmpd) +_F_systemd_units=(snmpd=) +Finclude systemd build() { unset MAKEFLAGS @@ -24,6 +28,8 @@ build() { --with-sys-contact="root at localhost" --with-sys-location="Unknown" \ --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" Frcd2 snmpd + Ffile /lib/systemd/system/snmpd.service + Fgenscriptlet } # optimization OK diff --git a/source/network-extra/net-snmp/snmpd.service b/source/network-extra/net-snmp/snmpd.service new file mode 100644 index 0000000..8197f09 --- /dev/null +++ b/source/network-extra/net-snmp/snmpd.service @@ -0,0 +1,11 @@ +[Unit] +Description=Simple Network Management Protocol +After=network.target + +[Service] +ExecStart=/usr/sbin/snmpd -p /var/run/snmpd.pid +PIDFile=/var/run/snmpd.pid +Type=forking + +[Install] +WantedBy=multi-user.target _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
