head 1.20; access; symbols pkgsrc-2023Q4:1.20.0.2 pkgsrc-2023Q4-base:1.20 pkgsrc-2023Q3:1.19.0.10 pkgsrc-2023Q3-base:1.19 pkgsrc-2023Q2:1.19.0.8 pkgsrc-2023Q2-base:1.19 pkgsrc-2023Q1:1.19.0.6 pkgsrc-2023Q1-base:1.19 pkgsrc-2022Q4:1.19.0.4 pkgsrc-2022Q4-base:1.19 pkgsrc-2022Q3:1.19.0.2 pkgsrc-2022Q3-base:1.19 pkgsrc-2022Q2:1.18.0.10 pkgsrc-2022Q2-base:1.18 pkgsrc-2022Q1:1.18.0.8 pkgsrc-2022Q1-base:1.18 pkgsrc-2021Q4:1.18.0.6 pkgsrc-2021Q4-base:1.18 pkgsrc-2021Q3:1.18.0.4 pkgsrc-2021Q3-base:1.18 pkgsrc-2021Q2:1.18.0.2 pkgsrc-2021Q2-base:1.18 pkgsrc-2021Q1:1.17.0.4 pkgsrc-2021Q1-base:1.17 pkgsrc-2020Q4:1.17.0.2 pkgsrc-2020Q4-base:1.17 pkgsrc-2020Q3:1.16.0.2 pkgsrc-2020Q3-base:1.16 pkgsrc-2020Q2:1.15.0.4 pkgsrc-2020Q2-base:1.15 pkgsrc-2020Q1:1.15.0.2 pkgsrc-2020Q1-base:1.15 pkgsrc-2019Q4:1.14.0.4 pkgsrc-2019Q4-base:1.14 pkgsrc-2019Q3:1.13.0.2 pkgsrc-2019Q3-base:1.13 pkgsrc-2019Q2:1.12.0.8 pkgsrc-2019Q2-base:1.12 pkgsrc-2019Q1:1.12.0.6 pkgsrc-2019Q1-base:1.12 pkgsrc-2018Q4:1.12.0.4 pkgsrc-2018Q4-base:1.12 pkgsrc-2018Q3:1.12.0.2 pkgsrc-2018Q3-base:1.12 pkgsrc-2018Q2:1.11.0.18 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.11.0.16 pkgsrc-2018Q1-base:1.11 pkgsrc-2017Q4:1.11.0.14 pkgsrc-2017Q4-base:1.11 pkgsrc-2017Q3:1.11.0.12 pkgsrc-2017Q3-base:1.11 pkgsrc-2017Q2:1.11.0.8 pkgsrc-2017Q2-base:1.11 pkgsrc-2017Q1:1.11.0.6 pkgsrc-2017Q1-base:1.11 pkgsrc-2016Q4:1.11.0.4 pkgsrc-2016Q4-base:1.11 pkgsrc-2016Q3:1.11.0.2 pkgsrc-2016Q3-base:1.11 pkgsrc-2016Q2:1.10.0.2 pkgsrc-2016Q2-base:1.10 pkgsrc-2016Q1:1.9.0.2 pkgsrc-2016Q1-base:1.9 pkgsrc-2015Q4:1.8.0.4 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.2 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.7.0.2 pkgsrc-2015Q2-base:1.7 pkgsrc-2015Q1:1.6.0.8 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.6 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.4 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.2 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.5.0.4 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.2 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.4.0.4 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.2 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.3.0.4 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.2 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.1.1.1.0.12 pkgsrc-2012Q3-base:1.1.1.1 pkgsrc-2012Q2:1.1.1.1.0.10 pkgsrc-2012Q2-base:1.1.1.1 pkgsrc-2012Q1:1.1.1.1.0.8 pkgsrc-2012Q1-base:1.1.1.1 pkgsrc-2011Q4:1.1.1.1.0.6 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.4 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.2 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.20 date 2023.10.24.22.10.33; author wiz; state Exp; branches; next 1.19; commitid MTsrqKm6aGrQAVJE; 1.19 date 2022.06.28.11.35.20; author wiz; state Exp; branches; next 1.18; commitid D2UoJrTHpoHEANJD; 1.18 date 2021.05.24.19.53.37; author wiz; state Exp; branches; next 1.17; commitid qokaiStTApGMcrUC; 1.17 date 2020.11.04.18.32.26; author otis; state Exp; branches; next 1.16; commitid Z6cc9hwBn52LeBuC; 1.16 date 2020.08.31.18.10.53; author wiz; state Exp; branches; next 1.15; commitid 7zxRbfOkDOoxbfmC; 1.15 date 2020.01.18.21.50.25; author jperkin; state Exp; branches; next 1.14; commitid JW4hJgY8ZdoTFdTB; 1.14 date 2019.10.12.20.53.48; author rillig; state Exp; branches; next 1.13; commitid X66ZYZKvGmz8xCGB; 1.13 date 2019.08.11.13.22.30; author wiz; state Exp; branches; next 1.12; commitid Ifet9Pg6Qt99ZByB; 1.12 date 2018.08.22.09.46.07; author wiz; state Exp; branches; next 1.11; commitid YLub8g3ofvFGb6PA; 1.11 date 2016.07.09.06.38.45; author wiz; state Exp; branches; next 1.10; commitid dlqnocGpOoXV2Cdz; 1.10 date 2016.05.17.10.32.08; author fhajny; state Exp; branches; next 1.9; commitid 6I4MSY4qjd2M1P6z; 1.9 date 2016.03.05.11.29.12; author jperkin; state Exp; branches; next 1.8; commitid 1LoxeQftu903HrXy; 1.8 date 2015.07.12.18.56.27; author wiz; state Exp; branches; next 1.7; commitid eGBYYIIW99WMN1ty; 1.7 date 2015.06.12.10.50.53; author wiz; state Exp; branches; next 1.6; commitid B4JmCfaVUbiY38py; 1.6 date 2014.05.29.23.37.12; author wiz; state Exp; branches; next 1.5; commitid laryHfkCalgYtuCx; 1.5 date 2013.12.09.14.17.51; author obache; state Exp; branches; next 1.4; commitid wogoyilp7OKaTsgx; 1.4 date 2013.05.31.12.41.43; author wiz; state Exp; branches; next 1.3; commitid hIeXGcx6VfKHwMRw; 1.3 date 2012.10.23.17.19.09; author asau; state Exp; branches; next 1.2; 1.2 date 2012.10.03.21.57.11; author wiz; state Exp; branches; next 1.1; 1.1 date 2011.04.13.10.23.47; author bouyer; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.04.13.10.23.47; author bouyer; state Exp; branches; next ; desc @@ 1.20 log @*: bump for openssl 3 @ text @# $NetBSD: Makefile,v 1.19 2022/06/28 11:35:20 wiz Exp $ # DISTNAME= snmptt_1.4.2 PKGNAME= snmptt-1.4.2 PKGREVISION= 3 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=snmptt/} EXTRACT_SUFX= .tgz MAINTAINER= bouyer@@NetBSD.org HOMEPAGE= http://www.snmptt.org/ COMMENT= SNMP trap handler written in Perl DEPENDS+= p5-Config-IniFiles-[0-9]*:../../devel/p5-Config-IniFiles #DEPENDS+= {perl>=5.7.3,p5-Time-HiRes-[0-9]*}:../../time/p5-Time-HiRes DEPENDS+= p5-Text-Balanced-[0-9]*:../../textproc/p5-Text-Balanced DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI DEPENDS+= p5-DBD-ODBC-[0-9]*:../../databases/p5-DBD-ODBC #DEPENDS+= {perl>=5.7.3,p5-Digest-MD5-[0-9]*}:../../security/p5-Digest-MD5 WRKSRC= ${WRKDIR}/${DISTNAME} PKG_SYSCONFSUBDIR= snmptt INSTALLATION_DIRS+= sbin RCD_SCRIPTS= snmptt BUILD_DEFS+= VARBASE .include "../../mk/bsd.prefs.mk" EGDIR= ${PREFIX}/share/examples/snmptt CONF_FILES= ${EGDIR}/snmptt.ini ${PKG_SYSCONFDIR}/snmptt.ini DOCDIR= ${PREFIX}/share/doc/snmptt MAKE_DIRS_PERMS+= ${VARBASE}/spool/snmptt ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755 USE_TOOLS+= perl:run REPLACE_PERL+= snmptt REPLACE_PERL+= snmptt-net-snmp-test REPLACE_PERL+= snmpttconvert REPLACE_PERL+= snmptthandler REPLACE_PERL+= snmptthandler-embedded REPLACE_PERL+= snmpttconvertmib SUBST_CLASSES+= installdir SUBST_STAGE.installdir= pre-configure SUBST_FILES.installdir= snmptt SUBST_FILES.installdir+= snmptthandler SUBST_FILES.installdir+= snmptthandler-embedded SUBST_SED.installdir= -e "s|/sbin|${PREFIX}/sbin|g" SUBST_MESSAGE.installdir= Fixing hardcoded install directory path. SUBST_CLASSES+= etcdir SUBST_STAGE.etcdir= pre-configure SUBST_FILES.etcdir= snmptt SUBST_FILES.etcdir+= snmptt.ini SUBST_FILES.etcdir+= snmptthandler SUBST_FILES.etcdir+= docs/faqs.html SUBST_FILES.etcdir+= docs/snmptt.html SUBST_FILES.etcdir+= docs/snmpttconvertmib.html SUBST_FILES.etcdir+= snmptthandler-embedded SUBST_SED.etcdir= -e "s|/etc|${PKG_SYSCONFDIR}|g" SUBST_MESSAGE.etcdir= Fixing hardcoded /etc path. SUBST_CLASSES+= vardir SUBST_STAGE.vardir= pre-configure SUBST_FILES.vardir= snmptt snmptt.ini SUBST_SED.vardir= -e "s|/var|${VARBASE}|g" SUBST_MESSAGE.vardir= Fixing hardcoded /var path. SUBST_CLASSES+= log SUBST_STAGE.log= pre-configure SUBST_FILES.log= snmptt.ini SUBST_SED.log= -e "s|/log/snmptt/|/log/|g" SUBST_MESSAGE.log= move ${VARBASE}/log/snmptt/ to ${VARBASE}/log do-build: do-install: for i in snmptt snmptt-net-snmp-test snmpttconvert \ snmptthandler snmptthandler-embedded snmpttconvertmib; do \ ${INSTALL_SCRIPT} ${WRKSRC}/$$i ${DESTDIR}${PREFIX}/sbin/; \ done ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} for i in snmptt.ini; do \ ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${EGDIR}/; \ done ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} for i in docs/*; do \ ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${DOCDIR}/; \ done .include "../../net/net-snmp/buildlink3.mk" .include "../../mk/bsd.pkg.mk" @ 1.19 log @*: recursive bump for perl 5.36 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2021/05/24 19:53:37 wiz Exp $ d6 1 a6 1 PKGREVISION= 2 @ 1.18 log @*: recursive bump for perl 5.34 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2020/11/04 18:32:26 otis Exp $ d6 1 a6 1 PKGREVISION= 1 @ 1.17 log @snmptt: Update to 1.4.2 Changelog: * v1.4.2 - July 23rd, 2020: - Fixed a security issue with EXEC / PREXEC / unknown_trap_exec that could allow malicious shell code to be executed (CVE-2020-24361). - Fixed a bug with EXEC / PREXEC / unknown_trap_exec that caused commands to be run as root instead of the user defined in daemon_uid. * v1.4 - November 6th, 2013: - Added snmptt.ini option net_snmp_perl_cache_enable to enable caching of Net-SNMP Perl module OID and ENUM translations. This may speed up translations and reduce CPU load when net_snmp_perl_enable and translate_* options are enabled. - Fixed bug with snmptthandler-embedded where IP addresses and OIDs were not being detected properly because they contained 'OID:', 'IpAddress:' etc. - Fixed bug with MATCH. The PREEXEC $p variable could not be used with MATCH. PREEXEC is now executed first if MATCH contains $p. - Fixed bug with syslog. Log entries were supposed to be logged with snmptt[pid] but instad of the pid it was actually the effective user ID (2980512). - Fixed bug where the hostname is not detected properly when snmptrapd is configured to not use DNS. - Fixed bug where if the spool directory is not defined, files may be deleted from the wrong folder (3020696). - Fixed bug with syslog logging. Function was not being called properly (3166749). - Fixed bug with MATCH where number ranges were not working (3397982). - Fixed bug with multi-line traps (2915658). - Fixed bug with LOGONLY severity. EXEC was being executed even if the trap had a severity of LOGONLY (3567744). - Fixed bug with snmptt hanging if the log message sent to syslog contained a % symbol. All %'s are now escaped before sending to syslog (3567748). - Fixed possible bug with MySQL. Put CONNECT string on one line. - Fixed bug with not being able to write to the debug log file when running snmptt as non-root if the debug file didn't already exist with the correct permissions at startup. The ownership of snmptt.debug is now set to daemon_uid before switching to the new uid. Patch 3423525. - Installation documentation updates (bug 3425999). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2020/08/31 18:10:53 wiz Exp $ d6 1 @ 1.16 log @*: bump PKGREVISION for perl-5.32. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2020/01/18 21:50:25 jperkin Exp $ d4 2 a5 3 DISTNAME= snmptt_1.3 PKGNAME= snmptt-1.3 PKGREVISION= 13 @ 1.15 log @*: Recursive revision bump for openssl 1.1.1. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2019/10/12 20:53:48 rillig Exp $ d6 1 a6 1 PKGREVISION= 12 @ 1.14 log @net/snmptt: fix location of HTML documentation @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2019/08/11 13:22:30 wiz Exp $ d6 1 a6 1 PKGREVISION= 11 @ 1.13 log @Bump PKGREVISIONs for perl 5.30.0 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2018/08/22 09:46:07 wiz Exp $ a4 1 EXTRACT_SUFX= .tgz d6 1 a6 1 PKGREVISION= 10 d9 1 d26 1 a26 1 INSTALLATION_DIRS+= sbin d36 1 a36 1 DOCDIR= ${PREFIX}/share/doc/html/snmptt d38 1 a38 1 MAKE_DIRS_PERMS+= ${VARBASE}/spool/snmptt ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755 d48 1 a48 1 SUBST_CLASSES+= installdir etcdir vardir log d56 1 d68 1 d74 1 @ 1.12 log @Recursive bump for perl5-5.28.0 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2016/07/09 06:38:45 wiz Exp $ d7 1 a7 1 PKGREVISION= 9 @ 1.11 log @Bump PKGREVISION for perl-5.24.0 for everything mentioning perl. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2016/05/17 10:32:08 fhajny Exp $ d7 1 a7 1 PKGREVISION= 8 @ 1.10 log @Use REAL_ROOT_USER/REAL_ROOT_GROUP instead of ROOT_USER/ROOT_GROUP for all pkgsrc dir/file ownership rules. Fixes unprivileged user/group names from leaking into binary packages, manifest as non-fatal chown/chgrp failure messages at pkg_add time. Bump respective packages' PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2016/03/05 11:29:12 jperkin Exp $ d7 1 a7 1 PKGREVISION= 7 @ 1.9 log @Bump PKGREVISION for security/openssl ABI bump. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2015/07/12 18:56:27 wiz Exp $ d7 1 a7 1 PKGREVISION= 6 d38 1 a38 1 MAKE_DIRS_PERMS+= ${VARBASE}/spool/snmptt ${ROOT_USER} ${ROOT_GROUP} 0755 @ 1.8 log @Comment out dependencies of the style {perl>=5.16.6,p5-ExtUtils-ParseXS>=3.15}:../../devel/p5-ExtUtils-ParseXS since pkgsrc enforces the newest perl version anyway, so they should always pick perl, but sometimes (pkg_add) don't due to the design of the {,} syntax. No effective change for the above reason. Ok joerg @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2015/06/12 10:50:53 wiz Exp $ d7 1 a7 1 PKGREVISION= 5 @ 1.7 log @Recursive PKGREVISION bump for all packages mentioning 'perl', having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2014/05/29 23:37:12 wiz Exp $ d16 1 a16 1 DEPENDS+= {perl>=5.7.3,p5-Time-HiRes-[0-9]*}:../../time/p5-Time-HiRes d20 1 a20 1 DEPENDS+= {perl>=5.7.3,p5-Digest-MD5-[0-9]*}:../../security/p5-Digest-MD5 @ 1.6 log @Bump for perl-5.20.0. Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2013/12/09 14:17:51 obache Exp $ d7 1 a7 1 PKGREVISION= 4 @ 1.5 log @Fix/Update DEPENDS paterns for perl CORE modules, with some trivial fixes. Bump PKGREVISION for runtime dependency pattern changed packages. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2013/05/31 12:41:43 wiz Exp $ d7 1 a7 1 PKGREVISION= 3 @ 1.4 log @Bump all packages for perl-5.18, that a) refer 'perl' in their Makefile, or b) have a directory name of p5-*, or c) have any dependency on any p5-* package Like last time, where this caused no complaints. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2012/10/23 17:19:09 asau Exp $ d7 1 a7 1 PKGREVISION= 2 d16 1 a16 1 DEPENDS+= p5-Time-HiRes-[0-9]*:../../time/p5-Time-HiRes d20 1 a20 1 DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5 @ 1.3 log @Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2012/10/03 21:57:11 wiz Exp $ d7 1 a7 1 PKGREVISION= 1 @ 1.2 log @Bump all packages that use perl, or depend on a p5-* package, or are called p5-*. I hope that's all of them. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2011/04/13 10:23:47 bouyer Exp $ a25 2 PKG_DESTDIR_SUPPORT= user-destdir @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2009/04/11 23:15:20 sno Exp $ d7 1 @ 1.1.1.1 log @Import of snmptt 1.3 SNMPTT (SNMP Trap Translator) is an SNMP trap handler written in Perl for use with the Net-SNMP / UCD-SNMP snmptrapd program (www.net-snmp.org). SNMPTT supports Linux, Unix and Windows. Snmptt can log to any of the following destinations: text log, syslog, NT Event log or a SQL database. External programs can also be run to pass the translated trap to an email client, paging software, Nagios etc. In addition to variable substitution, SNMPTT allows complex configurations allowing: * the ability to accept or reject a trap based on the host name, ip address, network range, or variable values inside of the trap enterprise variables * execute external programs to send pages, emails etc * perform regular expression search and replace on the translated message such as translating the variable value "Building alarm 4" to "Moisture detection alarm" @ text @@