Makefile 765 B

12345678910111213141516171819202122232425262728
  1. # $OpenBSD: Makefile,v 1.20 2015/01/21 06:23:35 bentley Exp $
  2. COMMENT= APC Smart UPS Monitoring Daemon
  3. DISTNAME= upsd-2.0.1.6
  4. CATEGORIES= sysutils
  5. REVISION = 0
  6. PERMIT_PACKAGE_CDROM= missing license
  7. PERMIT_PACKAGE_FTP= missing license
  8. PERMIT_DISTFILES_FTP= Yes
  9. WANTLIB= c
  10. WRKDIST= ${WRKDIR}/${DISTNAME:C,\.[0-9]+\.[0-9]+$,,}
  11. pre-build:
  12. @perl -pi -e 's:%%SYSCONFDIR%%:${SYSCONFDIR}:' \
  13. ${WRKSRC}/config.h
  14. @mv ${WRKSRC}/config.h ${WRKSRC}/conf.h.orig
  15. @sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h
  16. do-install:
  17. ${INSTALL_PROGRAM} ${WRKBUILD}/upsd ${PREFIX}/sbin
  18. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/upsd
  19. ${INSTALL_DATA} ${WRKSRC}/sample/upsd.conf ${PREFIX}/share/examples/upsd/upsd.conf-sample
  20. .include <bsd.port.mk>