blob: c80a9f68aaa0a87ebaf773566f0ab53fa4959eb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.10 2004/01/20 18:05:35 seb Exp $
DISTNAME= gnats-3.113.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU=gnats/}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/gnats/
COMMENT= Cygnus GNATS bug tracking system
BUILD_DEPENDS+= m4-*:../../devel/m4
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
USE_GMAKE= yes
USE_BISON= yes
USE_MAKEINFO= YES
INFO_FILES= gnats.info send-pr.info
CONFIGURE_ARGS= --with-lispdir=${PREFIX}/share/emacs/site-lisp \
--with-full-gnats \
--with-release-based
GNATS_HOME= ${PREFIX}/share/gnats/gnats-db
PKG_USERS= gnats:daemon::GNATS\\ database\\ owner:${GNATS_HOME}:/bin/sh
MAKE_DIRS= ${PREFIX}/share/gnats
OWN_DIRS_PERMS= ${GNATS_HOME} gnats daemon 755
OWN_DIRS_PERMS+= ${GNATS_HOME}/gnats-queue gnats daemon 755
OWN_DIRS_PERMS+= ${GNATS_HOME}/pending gnats daemon 755
OWN_DIRS_PERMS+= ${GNATS_HOME}/gnats-adm gnats daemon 755
OWN_DIRS_PERMS+= ${GNATS_HOME}/gnats-adm/locks gnats daemon 755
MESSAGE_SUBST+= PREFIX="${PREFIX}"
# this stops the configuration program from pulling installation
# information in from the standard NetBSD send-pr program
CONFIGURE_ENV= SEND_PR=/dev/null
# the gnats distribution comes with a lot of baggage we don't want to install
# just install gnats
INSTALL_TARGET= install-gnats install-send-pr
PLIST_SRC= ${WRKSRC}/.PLIST
post-build:
(cd ${WRKSRC}/gnats; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} info)
(cd ${WRKSRC}/send-pr; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} info)
post-install:
(cd ${WRKSRC}/gnats; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} install-info)
(cd ${WRKSRC}/send-pr; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} install-info)
${LS} ${PREFIX}/share/gnats/dist/send-pr.info* | \
${SED} -e 's,^${PREFIX}/,,' > ${PLIST_SRC}
${CAT} ${.CURDIR}/PLIST >> ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"
|