Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.11 2015/01/03 18:36:53 jca Exp $
  2. COMMENT= logfile auditing tool
  3. DISTNAME= logcheck-1.1.1
  4. PKGNAME= logsentry-1.1.1
  5. REVISION = 6
  6. CATEGORIES= security
  7. MAINTAINER= Markus Lude <markus.lude@gmx.de>
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB= c
  11. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sentrytools/}
  12. NO_TEST= Yes
  13. DOC_DIR= ${PREFIX}/share/doc/logsentry
  14. DOC_FILES= CREDITS INSTALL README README.how.to.interpret README.keywords
  15. CFG_DIR= ${PREFIX}/share/examples/logsentry
  16. CFG_FILES= logcheck.sh logcheck.hacking logcheck.ignore \
  17. logcheck.violations logcheck.violations.ignore
  18. SUBST_VARS+= DOC_DIR
  19. do-configure:
  20. @perl -pi -e 's,logcheck,logsentry,g' ${WRKSRC}/INSTALL
  21. @perl -pi -e 's,Logcheck,Logsentry,g' ${WRKSRC}/INSTALL
  22. @perl -pi -e 's,/usr/local/etc,${SYSCONFDIR},g' ${WRKSRC}/INSTALL
  23. do-build:
  24. ${CC} ${CFLAGS} -o ${WRKSRC}/src/logtail ${WRKSRC}/src/logtail.c
  25. do-install:
  26. ${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
  27. ${INSTALL_DATA_DIR} ${DOC_DIR}
  28. .for i in ${DOC_FILES}
  29. ${INSTALL_DATA} ${WRKSRC}/${i} ${DOC_DIR}
  30. .endfor
  31. ${INSTALL_DATA_DIR} ${CFG_DIR}
  32. .for i in ${CFG_FILES}
  33. ${INSTALL_DATA} ${WRKSRC}/systems/generic/${i} \
  34. ${CFG_DIR}/${i:S/logcheck/logsentry/}
  35. .endfor
  36. @perl -pi -e 's,%%LOCALBASE%%,${LOCALBASE},;' \
  37. -e 's,%%LOGSENTRY_TMP%%,/var/cache/logsentry,;' \
  38. -e 's,%%SYSCONFDIR%%,${SYSCONFDIR},;' ${CFG_DIR}/logsentry.sh
  39. .include <bsd.port.mk>