Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.15 2016/06/27 19:36:50 sthen Exp $
  2. COMMENT = remote backup software system
  3. DISTNAME = BackupPC-3.3.1
  4. REVISION = 2
  5. PKGNAME = ${DISTNAME:L}
  6. CATEGORIES = sysutils
  7. # GPLv2
  8. PERMIT_PACKAGE_CDROM= Yes
  9. HOMEPAGE = http://backuppc.sourceforge.net
  10. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=backuppc/}
  11. NO_BUILD = Yes
  12. # XXX one of them needed as runtime dep... buildep to get them found by configure
  13. BUILD_DEPENDS = archivers/gtar \
  14. net/samba \
  15. net/rsync \
  16. devel/p5-File-RsyncP
  17. RUN_DEPENDS = textproc/p5-XML-RSS \
  18. devel/p5-File-RsyncP \
  19. archivers/p5-Archive-Zip \
  20. www/p5-libwww \
  21. www/spawn-fcgi
  22. do-install:
  23. cd ${WRKSRC} && perl ./configure.pl \
  24. --html-dir ${TRUEPREFIX}/share/backuppc \
  25. --html-dir-url /backuppc \
  26. --cgi-dir ${TRUEPREFIX}/bin \
  27. --data-dir /var/db/backuppc \
  28. --log-dir /var/log/backuppc \
  29. --config-dir ${SYSCONFDIR}/backuppc \
  30. --install-dir ${TRUEPREFIX} \
  31. --dest-dir ${WRKINST} \
  32. --hostname example.com \
  33. --uid-ignore \
  34. --no-set-perms \
  35. --batch \
  36. -backuppc-user=_backuppc
  37. # needed since we use --no-set-perms
  38. chmod 555 ${PREFIX}/bin/*
  39. # add extension for the sake of clarity
  40. cd ${PREFIX}/bin/ && ln -sf BackupPC_Admin{,.fcgi}
  41. ${INSTALL_DATA} ${FILESDIR}/httpd-backuppc.conf ${PREFIX}/share/examples/backuppc/
  42. .include <bsd.port.mk>