| @@ -1,40 +1,43 @@ | | | @@ -1,40 +1,43 @@ |
1 | # $NetBSD: Makefile,v 1.7 2008/10/19 19:18:44 he Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2009/02/15 16:16:50 joerg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= spreadlogd | | 4 | DISTNAME= spreadlogd |
5 | PKGNAME= spreadlogd-2.0.0 | | 5 | PKGNAME= spreadlogd-2.0.0 |
6 | PKGREVISION= 5 | | 6 | PKGREVISION= 6 |
7 | CATEGORIES= net | | 7 | CATEGORIES= net |
8 | MASTER_SITES= http://www.backhand.org/mod_log_spread/ | | 8 | MASTER_SITES= http://www.backhand.org/mod_log_spread/ |
9 | DIST_SUBDIR= ${PKGNAME_NOREV} | | 9 | DIST_SUBDIR= ${PKGNAME_NOREV} |
10 | | | 10 | |
11 | MAINTAINER= mark@exonetric.com | | 11 | MAINTAINER= mark@exonetric.com |
12 | HOMEPAGE= http://www.backhand.org/mod_log_spread/ | | 12 | HOMEPAGE= http://www.backhand.org/mod_log_spread/ |
13 | COMMENT= Daemon to log to file, messages from spread toolkit clients | | 13 | COMMENT= Daemon to log to file, messages from spread toolkit clients |
14 | | | 14 | |
| | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
| | | 16 | |
15 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
16 | USE_TOOLS+= perl yacc | | 18 | USE_TOOLS+= perl:run yacc |
17 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | | 19 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} |
18 | | | 20 | |
19 | RCD_SCRIPTS= spreadlogd | | 21 | RCD_SCRIPTS= spreadlogd |
20 | # define the "example" directory for post-install target and for the CONF_FILES | | 22 | # define the "example" directory for post-install target and for the CONF_FILES |
21 | # variable used by pkginstall | | 23 | # variable used by pkginstall |
22 | EXAMPLEDIR= ${PREFIX}/share/examples/spreadlogd | | 24 | EXAMPLEDIR= ${PREFIX}/share/examples/spreadlogd |
23 | | | 25 | |
24 | # tell pkginstall where to pluck virgin configuration files from in the case of a new | | 26 | # tell pkginstall where to pluck virgin configuration files from in the case of a new |
25 | # install, knowing that the post-install target in *this* Makefile will put the | | 27 | # install, knowing that the post-install target in *this* Makefile will put the |
26 | # sample configuration in the example directory for us (as well as creating it) | | 28 | # sample configuration in the example directory for us (as well as creating it) |
27 | CONF_FILES+= ${EXAMPLEDIR}/spreadlogd.conf.sample ${PKG_SYSCONFDIR}/spreadlogd.conf | | 29 | CONF_FILES+= ${EXAMPLEDIR}/spreadlogd.conf.sample ${PKG_SYSCONFDIR}/spreadlogd.conf |
28 | | | 30 | |
| | | 31 | INSTALLATION_DIRS+= ${EXAMPLEDIR} |
| | | 32 | |
29 | # create example directory *and* put the sample configuration file here with the suffix | | 33 | # create example directory *and* put the sample configuration file here with the suffix |
30 | # .sample so that pkginstall can drop it in for us. | | 34 | # .sample so that pkginstall can drop it in for us. |
31 | post-install: | | 35 | post-install: |
32 | ${INSTALL_DATA_DIR} ${EXAMPLEDIR} | | 36 | ${INSTALL_DATA} ${WRKSRC}/spreadlogd.conf ${DESTDIR}${EXAMPLEDIR}/spreadlogd.conf.sample |
33 | ${INSTALL_DATA} ${WRKSRC}/spreadlogd.conf ${EXAMPLEDIR}/spreadlogd.conf.sample | | | |
34 | | | 37 | |
35 | BUILDLINK_API_DEPENDS.libevent+=libevent>=1.0c | | 38 | BUILDLINK_API_DEPENDS.libevent+=libevent>=1.0c |
36 | | | 39 | |
37 | .include "../../net/spread/buildlink3.mk" | | 40 | .include "../../net/spread/buildlink3.mk" |
38 | .include "../../devel/libevent/buildlink3.mk" | | 41 | .include "../../devel/libevent/buildlink3.mk" |
39 | .include "../../lang/perl5/buildlink3.mk" | | 42 | .include "../../lang/perl5/buildlink3.mk" |
40 | .include "../../mk/bsd.pkg.mk" | | 43 | .include "../../mk/bsd.pkg.mk" |