diff options
author | vs <vs@FreeBSD.org> | 2005-04-18 23:20:08 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-04-18 23:20:08 +0800 |
commit | 610d4e0a5d289029780d833be4f7e93b424de8c5 (patch) | |
tree | 4ef5ddde514ffe73bb82ff5eeac02a5d4a977508 | |
parent | d2b6353552577f6cad9fd0cf850608549a8e6cf3 (diff) | |
download | freebsd-ports-gnome-610d4e0a5d289029780d833be4f7e93b424de8c5.tar.gz freebsd-ports-gnome-610d4e0a5d289029780d833be4f7e93b424de8c5.tar.zst freebsd-ports-gnome-610d4e0a5d289029780d833be4f7e93b424de8c5.zip |
Repackage a bit: USE_RC_SUBR with substitutions
-rw-r--r-- | comms/ltmdm/Makefile | 11 | ||||
-rw-r--r-- | comms/ltmdm/files/ltmdm.sh.in (renamed from comms/ltmdm/files/ltmdm.sh) | 2 | ||||
-rw-r--r-- | comms/ltmdm/pkg-plist | 3 |
3 files changed, 5 insertions, 11 deletions
diff --git a/comms/ltmdm/Makefile b/comms/ltmdm/Makefile index 91205209817e..07a70d7f4db9 100644 --- a/comms/ltmdm/Makefile +++ b/comms/ltmdm/Makefile @@ -20,7 +20,8 @@ ONLY_FOR_ARCHS= i386 BUILD_WRKSRC= ${WRKSRC}/sys/modules/ltmdm NO_WRKSUBDIR= yes -USE_RC_SUBR= yes +USE_RC_SUBR= ltmdm.sh +SUB_LIST= MAJOR=${LTMDM_DEV_MAJOR} LTMDM_DEV_MAJOR ?= 228 LTMDM_OBJ_VERSION ?= 600 @@ -35,7 +36,8 @@ MAKE_ENV+= WERROR= PORTDOCS= README.TXT README-en.TXT INSTALL.TXT INSTALL-en.TXT SYSDIR?= ${SRC_BASE}/sys -RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} MAJOR=${LTMDM_DEV_MAJOR} +PLIST_FILES= %%DATADIR%%/ltmdm.ko +PLIST_DIRS= %%DATADIR%% pre-fetch: .if !exists(${SYSDIR}/Makefile) @@ -52,11 +54,6 @@ pre-fetch: @${ECHO} "*************************************************"; .endif -post-extract: - @ [ -f ${WRKSRC}/ltmdm.sh ] && ${RM} -f ${WRKSRC}/ltmdm.sh - @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ - < ${FILESDIR}/ltmdm.sh > ${WRKSRC}/ltmdm.sh - do-install: @${MKDIR} ${DATADIR} @${INSTALL_DATA} ${WRKSRC}/sys/modules/ltmdm/ltmdm.ko ${DATADIR} diff --git a/comms/ltmdm/files/ltmdm.sh b/comms/ltmdm/files/ltmdm.sh.in index 7614df9692ad..df991fb01b89 100644 --- a/comms/ltmdm/files/ltmdm.sh +++ b/comms/ltmdm/files/ltmdm.sh.in @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD$ +# $FreeBSD: /tmp/pcvs/ports/comms/ltmdm/files/Attic/ltmdm.sh.in,v 1.1 2005-04-18 15:20:08 vs Exp $ # PROVIDE: ltmdm # REQUIRE: DAEMON diff --git a/comms/ltmdm/pkg-plist b/comms/ltmdm/pkg-plist index d5930d0a965a..9d70d350f28c 100644 --- a/comms/ltmdm/pkg-plist +++ b/comms/ltmdm/pkg-plist @@ -1,4 +1 @@ @unexec sh %D/etc/rc.d/ltmdm.sh stop || true -etc/rc.d/ltmdm.sh -%%DATADIR%%/ltmdm.ko -@dirrm %%DATADIR%% |