summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-11-23 09:04:13 +0000
committerPacho Ramos <pacho@gentoo.org>2013-11-23 09:04:13 +0000
commit61bf0873b59597ca891ebbed86cef0894f1bdf88 (patch)
tree3d50a346bb3134f9e913a4daf8bf049f4a3cc089 /net-analyzer/net-snmp
parentVersion bump. (diff)
downloadhistorical-61bf0873b59597ca891ebbed86cef0894f1bdf88.tar.gz
historical-61bf0873b59597ca891ebbed86cef0894f1bdf88.tar.bz2
historical-61bf0873b59597ca891ebbed86cef0894f1bdf88.zip
Add unit file (#491768 by Joerg Neikes)
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'net-analyzer/net-snmp')
-rw-r--r--net-analyzer/net-snmp/ChangeLog8
-rw-r--r--net-analyzer/net-snmp/Manifest13
-rw-r--r--net-analyzer/net-snmp/files/snmpd.service9
-rw-r--r--net-analyzer/net-snmp/files/snmptrapd.service9
-rw-r--r--net-analyzer/net-snmp/net-snmp-5.7.2-r1.ebuild150
5 files changed, 183 insertions, 6 deletions
diff --git a/net-analyzer/net-snmp/ChangeLog b/net-analyzer/net-snmp/ChangeLog
index 8624493895c8..f2bf4209c587 100644
--- a/net-analyzer/net-snmp/ChangeLog
+++ b/net-analyzer/net-snmp/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/net-snmp
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.251 2013/09/20 16:59:48 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.252 2013/11/23 09:04:09 pacho Exp $
+
+*net-snmp-5.7.2-r1 (23 Nov 2013)
+
+ 23 Nov 2013; Pacho Ramos <pacho@gentoo.org> +files/snmpd.service,
+ +files/snmptrapd.service, +net-snmp-5.7.2-r1.ebuild:
+ Add unit file (#491768 by Joerg Neikes)
20 Sep 2013; Jeroen Roovers <jer@gentoo.org> net-snmp-5.7.2.ebuild:
Migrate from python.eclass to distutils-r1.eclass.
diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
index 668937ff681c..82fd5cf6d242 100644
--- a/net-analyzer/net-snmp/Manifest
+++ b/net-analyzer/net-snmp/Manifest
@@ -4,20 +4,23 @@ Hash: SHA256
AUX net-snmp-5.1.2-snmpconf-selinux.patch 286 SHA256 70b4bdaa243efd5ae5703b3272063314fc56b6e2333f7c650b635ddab141f874 SHA512 704b6366c797e2c114b111869f920fd608ba75cdea2854de29f2df0d453906225e9af71318920465bd94a991f771c4a3ab4cf5efc8ee67c65053efa2113d7ee4 WHIRLPOOL b4e0ccc9d8fe3db265aef90ff11e054594e0de75fc2e503d09a64a770de27514d6e1948ead207b4ffa561cd94a82371f20d47dacd90ed6cc59beb72e2b7915d2
AUX snmpd.conf 598 SHA256 1f4f07b831c3227588fd546423137ed5c60a602fbee13b0d66edd801e4e7d598 SHA512 3df54b15edef7347283aaad6eca4e4222a785f10abdbd42abe6a23b16ced2364e4302a3b8e87a62570b5b1d5d103f14244c7098034c4b941630478d6e72c3a68 WHIRLPOOL 69ef718567becf3d04cc25f0ec6491d7bbf6a9906edba146e6913fcbf41ae6d70d4cc010a217a7297398ce95b52c6d6091859432b8d73be99bee9e06c15ccd24
AUX snmpd.init.2 797 SHA256 e167c3606b97a32e0831c38504d4eed5deb17b0abf54617d3783c0b37e9850eb SHA512 eed8fd549528b442cf8db847f848d5f264e4f0d9cde624312d3260ec24b05aadac3935bc6f009b4b0043ddcb7ed60dfa216742fab03e075d5ee7b7bce8e5f2c9 WHIRLPOOL 9d91c1da1febeb5a1d5fe17385613004d0cba69e9a49b8815129319a3f0ea3bb9a5ddacc38fba1f303ce9854be7a89c6228ff091e032f5f01d9c624bbc8c2f22
+AUX snmpd.service 181 SHA256 32e63a1959f80ee237c72cb342a3c70705132dea5d2fc1f4cf42d23aaa32b2ee SHA512 e8fe55538bf8c14ddb84c464bceddc33fdd0a03d303413783fb23d49c5d2417ead17fbcbbe460bf89738a5cff543f3ea0c7a4fd28e6f598dc9458da1d30d74ac WHIRLPOOL 1a812788a096865451a7eb4cb1af916b5fec38161ba653925a4ecccf6169b9f7eac17b467323811029da4ac3fbde69686998feca019e1d858998e3fdfb456c31
AUX snmptrapd.conf 635 SHA256 902d73cb44446df060bf20e0c8ef0f8815d5b846f96d93894913d3309a3841b3 SHA512 ed7f5229cb080e77e9a461959e217f3a847eb800f139077bab6a9530683de4be212a2f7abe294b2261093a9e0f4a28ff8124f5ffc74ce0306ebe60d4f7fa3ea6 WHIRLPOOL 8dfc229f48062925957942613bf6125ac2eb7d13bf56869873c37522ccecb570d9bd861bc855c71f21827b9ed5a578a5b3617ed61fd7518571114f9376d051f0
AUX snmptrapd.init.2 459 SHA256 b4dfa7b9084df5772a60ead0af97c653a4ff75dcf5bc2e661173b342e73a81fa SHA512 36374cc3b6971286c0df13861f34ff07c87e9c2347e47e40115fc97b6a15db60cc776cb57edca05275dc004fd8ca61cbf52db4ffa6750827a9d32d3b44c8c137 WHIRLPOOL b699d4483f9c46c22bfda16132955a483b1fe330b666293a16bfe6de174bec68fa71d7c4f0d276a8829aea56ed1396c2b8a1470b5dbf24c2e6f1bca31ab0f0df
+AUX snmptrapd.service 190 SHA256 e091dab52eab606a4ae1de408b4633ac1e60a79d786f90a5365916ebe92ba520 SHA512 763682e3926fd1e7f28a013be2ad56cc53eed26a0415770906968e07a183128c9d5fb70d76513244ba0cc95fc2526b68c32207b5fda83b8f53c256549cfa1b1d WHIRLPOOL 175efbeb3ca00d33f76ca9ff8923187fb807c8be0a16b87bf9e5e4be96d5ca9cfd2c186c0f549bcc6cd53e7ab2caadac692331e5fac88550a1df9ee2e7b35ce3
DIST net-snmp-5.7.2-patches-1.tar.xz 3332 SHA256 de70836fd5baff4c9223f3861eee9e625eea32859b72d7245ba6f2c35c8d7b7e SHA512 f2dfde64c81832619ca851de803a852cf4bc66b8503258bce14cacbc24083be70d100685a3cba4da0b17459bb12eb32cd38242eaafd5e320731b6ac7ee927d6c WHIRLPOOL 9978fce81414a739e65a7d66564fe13ae82059b81ce14f2f212626ee9b06ba842cea770e6918f2a71a5befb82a1d96d6e9c0e57279dcda20abd61305093f457b
DIST net-snmp-5.7.2.rc1-patches-3.tar.xz 3320 SHA256 d9cbfffe0d458d2c2680d4959e0d5322833fdc7ba94f5a235e7c0c3579197cb0 SHA512 584b74cd7ae041da639889384365ccc7cff8c7d57c5686bf2624194ff55fa1d2b32290979a7b1f19c19381dd396fb5b5fe0535df8abbc4fda8785910a41b4074 WHIRLPOOL 7f72e35418a775d189763d0b0ab7a7235f03c8005016b15a52addeafe3f08d20ae0ecce61789f1ed87f8ec78de39a6fd012b3619cd22177878d981772a9c5c17
DIST net-snmp-5.7.2.rc1.tar.gz 6277186 SHA256 ac6ffb1468d5d651e446ded30f8aea3efe80925be5794100c3d0e8c21c04b784 SHA512 905375b707909a164943d7394fa5cc6997101e64f3f641f29e2cf309d5572c8cea9c53be4b2f79893c9c00407a3bec44b495f90f4af5663d5da58f2dafc30fc7 WHIRLPOOL 1656b0e9d591d39e47b9a46943bc975d1c1d175799b1656ca877f57285db44ab54bc42ff31b3c9b13d1b60767c90b3af1a99d3c13ed8745106e0b79d97cc31af
DIST net-snmp-5.7.2.tar.gz 6281352 SHA256 09ed31b4cc1f3c0411ef9a16eff79ef3b30d89c32ca46d5a01a41826c4ceb816 SHA512 6cf9847c30d861f1c7002ca68f8317f84e7a7278ab78e92e6481a5296e0bf1e5f3525ec566002bd307d8d907699e9baef9f3919ba18d0948cc3bb550b99de882 WHIRLPOOL 6654d094a49a41f4039e0adcb6285f89a2bef941ef903a94838419b7784215464c588235273e9744941d48484937fa272496193248d12a730b3d400f5b1a8454
+EBUILD net-snmp-5.7.2-r1.ebuild 4232 SHA256 0332495178e0c958a0ec71fdcc19e9f478024eb738ab8879caf064c2c1625b62 SHA512 8aa25106e871d46dadaa583483046a2d3f4978e090c46afda7f60c4a57a26e2e3ab9df5592edf9a859c385aa712703070c095bc93233b57eb7a46355e49a57dd WHIRLPOOL 850047b6712f240139bcefa27bb1276a441b3033f2479311342797d655289cfec9487daa27a7c6b482dc373d265586eddf9dd989d8b24d191e1864b6c79b665c
EBUILD net-snmp-5.7.2.ebuild 4126 SHA256 9717dccd4bd2f54180bbcf3233b66d392981cbe3d59cdd8cf78aa743581c9b6f SHA512 fcf4eb827c16b9b9bb7da19f7de34477be3950f821eb24967d05abbbf4a60deb4e29f83d15459d0b2e3f8d9081ef8e82cd75a6bb04a80d953216ce507af31298 WHIRLPOOL 94f8d8f959f1c3cfd58bffc5e3409947b3e16b5f70372dffcbb15fc4634e523e8e9b35db0ac802c79b3d9bf9e96e5ce6c8dc5653b4c39f4a51797f88126317ab
EBUILD net-snmp-5.7.2_rc1.ebuild 4312 SHA256 585de00d4c1a80a79943183acf9005a10b6be51caffffb4a85b42dbbbb3309e4 SHA512 fba9c6ee987d32e1885896889dc43e2a0b7596eee0632a9e5d277dfd1aa19260403428f9be058cf85aa92be9f138619cbb33ad370a7ba130914fdbbf7e841db0 WHIRLPOOL 636be6e19945f207dc539c4ddddb406ca85e02149f84b48c176fd29d099b6f818129dbf2c1d29cccc700e44d989ee7797db491524fdd37c5cd10c07892f3d61b
-MISC ChangeLog 42146 SHA256 9bca53770d0334c2a9bf544324fcc241a7b24b5e0fb05b2fcf89973a145ebb82 SHA512 4b48f1baeac9afd84f08c67e34a0fd5d5f8fd90b8b3a236f918e5dbef4700d36118e37e20aa1f803734c28de2d4d929fb832b3566071c018280519de6cc0a8ba WHIRLPOOL 4c3f5721998496a7d1fb7e15a79ed4d901dc6bd5de71710eaf798c0496e91d32794a89cf30707f3a1cab9bee162cfce8668246267d4754f82eb898503dbab5ad
+MISC ChangeLog 42348 SHA256 b524a0777e7a8044a4115b86e1bde04d3a96dc84a869bd7b3522f61932efd71c SHA512 1b3f8c065cfc7916fa2a46d08fc68e129dd58f6465bc2bf1926dd4076b10ff59be6d933677af4bddfb89c035b998869fe64659404acb3207e4fe36b95156eb54 WHIRLPOOL e0a559f6f1c065fadf3447d84784f7006f13a2194b464367d987613840672874c58d3e5f40828149f82276644d95c85229f81b386c0b358581f46dc35cf3c87a
MISC metadata.xml 969 SHA256 1f03f76f0787332dfd77b0631ba1f7a933b1d2facf0ffa5a0d8a258d591971d0 SHA512 d2200fd7ec47d88827b25b7b5ba4d357523b4bc2064671e98e59577a24b707adc64687a96e3fb9e75a2b792d717eb5279063996e64129bc0c9708ae5855951ae WHIRLPOOL 997bbdd7e56790fb82128c87efd7bc638c78cc2d472120410052ed309b9817d88e6ce6a5a7e285d91c60aa96254714b0bc4e6735b803cd69a037e02b223a74b8
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.20 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlI8fwUACgkQVWmRsqeSphPFaQCcC6uroLOJ/lzzt0RmMrH08IDq
-xA4AnAnuFwwu0KKg6bGFDo/wNnk3wnfQ
-=UCFO
+iEYEAREIAAYFAlKQb4oACgkQCaWpQKGI+9SBwwCfecdPRmd8bjGEaDw2e6hHOhUx
+vf8AnAroR08moR4WRjYAg7L8ybAG2gNf
+=eov2
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/net-snmp/files/snmpd.service b/net-analyzer/net-snmp/files/snmpd.service
new file mode 100644
index 000000000000..8150d7b18818
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmpd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Simple Network Management Protocol (SNMP) Daemon
+After=syslog.target network.target
+
+[Service]
+ExecStart=/usr/sbin/snmpd -f
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-analyzer/net-snmp/files/snmptrapd.service b/net-analyzer/net-snmp/files/snmptrapd.service
new file mode 100644
index 000000000000..7d19444c1d73
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmptrapd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Simple Network Management Protocol (SNMP) TRAP Daemon
+After=syslog.target network.target
+
+[Service]
+ExecStart=/usr/sbin/snmptrapd -f
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-analyzer/net-snmp/net-snmp-5.7.2-r1.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.2-r1.ebuild
new file mode 100644
index 000000000000..89296f5b1dbe
--- /dev/null
+++ b/net-analyzer/net-snmp/net-snmp-5.7.2-r1.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.7.2-r1.ebuild,v 1.3 2013/11/23 09:04:09 pacho Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_{6,7} )
+DISTUTILS_SINGLE_IMPL=yesplz
+DISTUTILS_OPTIONAL=yesplz
+WANT_AUTOMAKE=none
+PATCHSET=1
+
+inherit autotools distutils-r1 eutils perl-module systemd
+
+MY_P="${P/_rc/.rc}"
+
+DESCRIPTION="Software for generating and retrieving SNMP data"
+HOMEPAGE="http://net-snmp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+ http://dev.gentoo.org/~flameeyes/${PN}/${MY_P}-patches-${PATCHSET}.tar.xz"
+
+# GPL-2 for the init scripts
+LICENSE="HPND BSD GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="bzip2 doc elf ipv6 mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat pci netlink mysql"
+
+COMMON="ssl? ( >=dev-libs/openssl-0.9.6d )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ rpm? (
+ app-arch/rpm
+ dev-libs/popt
+ )
+ bzip2? ( app-arch/bzip2 )
+ zlib? ( >=sys-libs/zlib-1.1.4 )
+ elf? ( dev-libs/elfutils )
+ python? ( dev-python/setuptools ${PYTHON_DEPS} )
+ pci? ( sys-apps/pciutils )
+ lm_sensors? ( sys-apps/lm_sensors )
+ netlink? ( dev-libs/libnl:1.1 )
+ mysql? ( virtual/mysql )"
+
+RDEPEND="${COMMON}
+ perl? (
+ X? ( dev-perl/perl-tk )
+ !minimal? ( dev-perl/TermReadKey )
+ )
+ selinux? ( sec-policy/selinux-snmp )
+"
+
+# Dependency on autoconf due to bug #225893
+DEPEND="${COMMON}
+ >=sys-apps/sed-4
+ doc? ( app-doc/doxygen )"
+
+REQUIRED_USE="rpm? ( bzip2 zlib )"
+
+RESTRICT=test
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # snmpconf generates config files with proper selinux context
+ use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
+
+ epatch "${WORKDIR}"/patches/*.patch
+ eautoconf
+}
+
+src_configure() {
+ # keep this in the same line, configure.ac arguments are passed down to config.h
+ local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux"
+ use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
+
+ econf \
+ $(use_enable !ssl internal-md5) \
+ $(use_enable ipv6) \
+ $(use_enable mfd-rewrites) \
+ $(use_enable perl embedded-perl) \
+ $(use_enable ucd-compat ucd-snmp-compatibility) \
+ $(use_with bzip2) \
+ $(use_with elf) \
+ $(use_with mysql) \
+ $(use_with netlink nl) \
+ $(use_with pci) \
+ $(use_with perl perl-modules INSTALLDIRS=vendor) \
+ $(use_with python python-modules) \
+ $(use_with rpm) \
+ $(use_with ssl openssl) \
+ $(use_with tcpd libwrap) \
+ $(use_with zlib) \
+ --enable-shared --disable-static \
+ --with-default-snmp-version="3" \
+ --with-install-prefix="${D}" \
+ --with-ldflags="${LDFLAGS}" \
+ --with-logfile="/var/log/net-snmpd.log" \
+ --with-mib-modules="${mibs}" \
+ --with-persistent-directory="/var/lib/net-snmp" \
+ --with-sys-contact="root@Unknown" \
+ --with-sys-location="Unknown"
+}
+
+src_compile() {
+ emake OTHERLDFLAGS="${LDFLAGS}" sedscript all
+
+ if use doc ; then
+ einfo "Building HTML Documentation"
+ emake docsdox
+ fi
+}
+
+src_install () {
+ # bug #317965
+ emake -j1 DESTDIR="${D}" install
+
+ if use perl ; then
+ fixlocalpod
+ use X || rm -f "${D}"/usr/bin/tkmib
+ else
+ rm -f "${D}"/usr/bin/mib2c "${D}"/usr/bin/snmpcheck "${D}"/usr/bin/tkmib
+ fi
+
+ dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
+ newdoc EXAMPLE.conf.def EXAMPLE.conf
+
+ use doc && dohtml docs/html/*
+
+ keepdir /var/lib/net-snmp
+
+ newinitd "${FILESDIR}"/snmpd.init.2 snmpd
+ newconfd "${FILESDIR}"/snmpd.conf snmpd
+
+ newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
+ newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
+
+ systemd_dounit "${FILESDIR}"/snmpd.service
+ systemd_dounit "${FILESDIR}"/snmptrapd.service
+
+ insinto /etc/snmp
+ newins "${S}"/EXAMPLE.conf snmpd.conf.example
+
+ # Remove everything not required for an agent.
+ # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
+ if use minimal; then
+ rm -rf \
+ "${D}"/usr/bin/{encode_keychange,snmp{get,getnext,set,usm,walk,bulkwalk,table,trap,bulkget,translate,status,delta,test,df,vacm,netstat,inform,check,conf},fixproc,traptoemail} \
+ "${D}"/usr/share/snmp/snmpconf-data \
+ "${D}"/usr/share/snmp/*.conf \
+ "${D}"/**/*.pl
+ fi
+}