openbsd-ports/net/snmptt/Makefile
jasper 4fee5ffce0 Sanitize some @unexec/@extraunexec calls to rm: move them up in the
PLIST and delete everything under the @sample'd directory instead of the
directory itself to prevent a warning from pkg_delete(1) trying to
remove a non existing directory and to help preventing left-over files
and directories.

ok aja@
2011-05-11 12:03:19 +00:00

43 lines
1004 B
Makefile

# $OpenBSD: Makefile,v 1.3 2011/05/11 12:03:20 jasper Exp $
COMMENT= SNMP trap handler written
DISTNAME= snmptt_1.3
PKGNAME= ${DISTNAME:S/_/-/}
REVISION= 0
CATEGORIES= net
HOMEPAGE= http://snmptt.sourceforge.net/
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=snmptt/}
EXTRACT_SUFX= .tgz
PKG_ARCH= *
NO_BUILD= Yes
NO_REGRESS= Yes
RUN_DEPENDS= devel/p5-Config-IniFiles \
net/net-snmp
DOC_DIR= ${PREFIX}/share/doc/snmptt
EX_DIR= ${PREFIX}/share/examples/snmptt
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/{snmptt,snmptthandler} ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOC_DIR}
${INSTALL_DATA_DIR} ${EX_DIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EX_DIR}
${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${EX_DIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/snmptt
${INSTALL_DATA} ${WRKSRC}/sample-* ${PREFIX}/share/snmptt
.include <bsd.port.mk>