Use -m mode with ${SUBST_CMD} instead of two-step process

SUBST_CMD / chmod. Replace -o root -g bin with -o ${BINOWN}
and -g ${BINGRP}.

ok sthen@
This commit is contained in:
rpe 2013-05-10 20:30:30 +00:00
parent 7d27df4ce8
commit 5c2165ef28
5 changed files with 14 additions and 16 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.16 2013/03/10 23:04:44 espie Exp $
# $OpenBSD: Makefile,v 1.17 2013/05/10 20:30:30 rpe Exp $
COMMENT= interactive electronics designing software
@ -40,9 +40,8 @@ do-configure:
${LOCALBASE}/bin/qmake4 -o Makefile phoenix.pro
do-install:
${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -c ${FILESDIR}/fritzing.sh \
${PREFIX}/bin/fritzing
chmod ${BINMODE} ${PREFIX}/bin/fritzing
${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} -c \
${FILESDIR}/fritzing.sh ${PREFIX}/bin/fritzing
${INSTALL_PROGRAM} ${WRKSRC}/Fritzing ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/fritzing/
cd ${WRKSRC}; tar cf - bins parts resources sketches tools translations | \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.22 2013/03/11 02:52:07 espie Exp $
# $OpenBSD: Makefile,v 1.23 2013/05/10 20:30:31 rpe Exp $
# NOTE for FLAVOR=src
# - you can have up-to-date ${BSDSRCDIR}/distrib/sets/lists
@ -77,8 +77,8 @@ do-build:
do-install:
${INSTALL_DATA} ${WRKBUILD}/pkglocatedb ${PREFIX}/share
${INSTALL_MAN} ${FILESDIR}/pkg_locate.1 ${PREFIX}/man/man1
${SUBST_CMD} -o root -g bin -c ${FILESDIR}/pkglocate ${PREFIX}/bin/pkg_locate
chmod ${BINMODE} ${PREFIX}/bin/pkg_locate
${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} -c \
${FILESDIR}/pkglocate ${PREFIX}/bin/pkg_locate
ln -s ${TRUEPREFIX}/bin/pkg_locate ${PREFIX}/bin/pkglocate
NO_TEST = Yes

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.46 2013/03/21 08:45:15 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.47 2013/05/10 20:30:31 rpe Exp $
COMMENT= SGI audiofile library clone
@ -32,8 +32,8 @@ CONFIGURE_ARGS= ${CONFIGURE_SHARED}
# audiofile-config is still needed by audio/normalize and devel/libspectrum
post-install:
${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -c ${FILESDIR}/audiofile-config \
${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} -c \
${FILESDIR}/audiofile-config \
${PREFIX}/bin/audiofile-config
chmod ${BINMODE} ${PREFIX}/bin/audiofile-config
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.24 2013/03/11 10:50:12 espie Exp $
# $OpenBSD: Makefile,v 1.25 2013/05/10 20:30:31 rpe Exp $
SHARED_ONLY= Yes
@ -42,10 +42,9 @@ do-install:
@rm -rf ${NB}/profiler3
@find ${NB} -name "*.dll" -o -name "*.exe" -o -name "*.cmd" \
-o -name "*.bat" -o -name "*.orig" | xargs rm
@${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -c \
@${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} -c \
${FILESDIR}/netbeans \
${PREFIX}/bin/netbeans
@chmod ${BINMODE} ${PREFIX}/bin/netbeans
@${INSTALL_DATA_DIR} ${PREFIX}/share/applications
@${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c \
${FILESDIR}/netbeans.desktop \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.4 2013/03/17 00:54:18 brad Exp $
# $OpenBSD: Makefile,v 1.5 2013/05/10 20:30:31 rpe Exp $
COMMENT = visual novel engine
@ -45,7 +45,7 @@ pre-install:
cp -r launcher renpy common template the_question tutorial LICENSE.txt \
${PREFIX}/share/renpy
${INSTALL_SCRIPT} ${WRKDIST}/renpy.py ${PREFIX}/share/renpy
${SUBST_CMD} -o root -g bin -c ${FILESDIR}/renpy ${PREFIX}/bin/renpy
chmod ${BINMODE} ${PREFIX}/bin/renpy
${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} -c \
${FILESDIR}/renpy ${PREFIX}/bin/renpy
.include <bsd.port.mk>