Create directories needed for proper package functionality in an
INSTALL script using OWN_DIRS_PERMS. Drop the redundant targets and PLIST entries. Bump the PKGREVISION to 3.
This commit is contained in:
parent
5b082dc2b3
commit
34622ebc46
2 changed files with 12 additions and 14 deletions
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.18 2006/03/31 19:29:37 jlam Exp $
|
||||
# $NetBSD: Makefile,v 1.19 2006/03/31 23:20:29 jlam Exp $
|
||||
#
|
||||
|
||||
DISTNAME= dirmngr-0.9.3
|
||||
PKGREVISION= 2
|
||||
PKGREVISION= 3
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/alpha/dirmngr/
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
@ -35,6 +35,15 @@ SUBST_FILES+= SYSCONFDIR=${SYSCONFDIR}
|
|||
SUBST_FILES+= DIRMNGR_USER=${DIRMNGR_USER}
|
||||
SUBST_FILES+= DIRMNGR_PATH=${DIRMNGR_PATH}
|
||||
|
||||
OWN_DIRS+= ${PKG_SYSCONFDIR}/dirmngr
|
||||
OWN_DIRS+= ${PKG_SYSCONFDIR}/dirmngr/trusted-certs
|
||||
|
||||
DIRMNGR_PERMS= ${DIRMNGR_USER} ${DIRMNGR_GROUP} 0755
|
||||
OWN_DIRS_PERMS+= ${VARBASE}/dirmngr ${DIRMNGR_PERMS}
|
||||
OWN_DIRS_PERMS+= ${VARBASE}/dirmngr/cache ${DIRMNGR_PERMS}
|
||||
OWN_DIRS_PERMS+= ${PREFIX}/libdata/dirmngr ${DIRMNGR_PERMS}
|
||||
OWN_DIRS_PERMS+= ${PREFIX}/libdata/dirmngr/extra-certs ${DIRMNGR_PERMS}
|
||||
|
||||
# We are building a static pth library and linking against it
|
||||
pre-configure:
|
||||
cd ${WRKDIR}/pth-2.0.4 && ./configure --prefix=${WRKDIR}/pth --enable-pthread --enable-static --disable-shared && ${MAKE} install
|
||||
|
@ -46,14 +55,6 @@ post-build:
|
|||
cd ${WRKDIR} && \
|
||||
${SETENV} ${BUILDENV} ${CC} ${CFLAGS} -DDIRMNGR_USER='"${DIRMNGR_USER}"' -DDIRMNGR_PATH='"${PREFIX}/bin/dirmngr"' -o runDirmngr runDirmngr.c
|
||||
|
||||
pre-install:
|
||||
${INSTALL_DATA_DIR} ${VARBASE}/dirmngr/cache
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/libdata/dirmngr
|
||||
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/dirmngr/trusted-certs
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/libdata/dirmngr/extra-certs
|
||||
${CHOWN} -R ${DIRMNGR_USER}:${DIRMNGR_GROUP} ${VARBASE}/dirmngr
|
||||
${CHOWN} -R ${DIRMNGR_USER}:${DIRMNGR_GROUP} ${PREFIX}/libdata/dirmngr
|
||||
|
||||
post-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/runDirmngr ${PREFIX}/sbin
|
||||
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
@comment $NetBSD: PLIST,v 1.5 2005/05/02 22:49:09 reed Exp $
|
||||
@comment $NetBSD: PLIST,v 1.6 2006/03/31 23:20:29 jlam Exp $
|
||||
bin/dirmngr
|
||||
bin/dirmngr-client
|
||||
libexec/dirmngr_ldap
|
||||
sbin/runDirmngr
|
||||
share/examples/rc.d/dirmngr
|
||||
${PKGLOCALEDIR}/locale/de/LC_MESSAGES/dirmngr.mo
|
||||
@exec ${MKDIR} %D/libdata/dirmngr/extra-certs
|
||||
@dirrm libdata/dirmngr/extra-certs
|
||||
@dirrm libdata/dirmngr
|
||||
|
|
Loading…
Reference in a new issue