mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
- Remove DESTDIR support from my ports as it is useless now. New implementation
is coming.
This commit is contained in:
parent
d52e405574
commit
da92dce43f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=188901
@ -36,11 +36,11 @@ post-patch:
|
||||
${WRKSRC}/sc_serv.conf
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${TARGETDIR}/sbin
|
||||
@${MKDIR} ${TARGETDIR}/etc/shoutcast
|
||||
@${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${TARGETDIR}/etc/shoutcast/sc_serv.conf.sample
|
||||
@[ -f ${TARGETDIR}/etc/shoutcast/sc_serv.conf ] || \
|
||||
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${TARGETDIR}/etc/shoutcast/sc_serv.conf
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${PREFIX}/sbin
|
||||
@${MKDIR} ${PREFIX}/etc/shoutcast
|
||||
@${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf.sample
|
||||
@[ -f ${PREFIX}/etc/shoutcast/sc_serv.conf ] || \
|
||||
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@ -49,6 +49,6 @@ do-install:
|
||||
|
||||
post-install:
|
||||
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
@${BRANDELF} -t Linux ${TARGETDIR}/sbin/sc_serv
|
||||
@${BRANDELF} -t Linux ${PREFIX}/sbin/sc_serv
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -8,12 +8,7 @@ SC_GROUP=shoutcast
|
||||
SC_USER=shoutcast
|
||||
SC_SHELL=/bin/sh
|
||||
SC_HOME=/nonexistent
|
||||
|
||||
if [ -n "${DESTDIR}" ] ; then
|
||||
PW="/usr/sbin/chroot ${DESTDIR} /usr/sbin/pw"
|
||||
else
|
||||
PW="/usr/sbin/pw"
|
||||
fi
|
||||
PW="/usr/sbin/pw"
|
||||
|
||||
if ! ${PW} show group ${SC_GROUP} -q >/dev/null; then
|
||||
gid=210
|
||||
|
@ -41,11 +41,11 @@ post-patch:
|
||||
${WRKSRC}/sc_serv.conf
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${TARGETDIR}/sbin
|
||||
@${MKDIR} ${TARGETDIR}/etc/shoutcast
|
||||
@${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${TARGETDIR}/etc/shoutcast/sc_serv.conf.sample
|
||||
@[ -f ${TARGETDIR}/etc/shoutcast/sc_serv.conf ] || \
|
||||
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${TARGETDIR}/etc/shoutcast/sc_serv.conf
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${PREFIX}/sbin
|
||||
@${MKDIR} ${PREFIX}/etc/shoutcast
|
||||
@${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf.sample
|
||||
@[ -f ${PREFIX}/etc/shoutcast/sc_serv.conf ] || \
|
||||
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
|
||||
|
@ -8,12 +8,7 @@ SC_GROUP=shoutcast
|
||||
SC_USER=shoutcast
|
||||
SC_SHELL=/bin/sh
|
||||
SC_HOME=/nonexistent
|
||||
|
||||
if [ -n "${DESTDIR}" ] ; then
|
||||
PW="/usr/sbin/chroot ${DESTDIR} /usr/sbin/pw"
|
||||
else
|
||||
PW="/usr/sbin/pw"
|
||||
fi
|
||||
PW="/usr/sbin/pw"
|
||||
|
||||
if ! ${PW} show group ${SC_GROUP} -q >/dev/null; then
|
||||
gid=210
|
||||
|
@ -40,8 +40,6 @@ pre-everything::
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} "s|prefix = @prefix@|prefix = ${TARGETDIR}|" \
|
||||
${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -e "s|LIBS = @LIBS@ -lc|LIBS = @LIBS@|" \
|
||||
-e "s|BINOWN = bin|BINOWN = root|" -e "s|BINGRP = bin|BINGRP = wheel|" \
|
||||
-e "s|libgdbm.la libgdbm_compat.la|libgdbm.la libgdbm_compat.la gdbm.info|" \
|
||||
|
@ -16,9 +16,9 @@ MAINTAINER= gabor@FreeBSD.org
|
||||
COMMENT= A cross-platform terminal manipulation library
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${TARGETDIR}/include/tn
|
||||
${INSTALL_DATA} ${WRKSRC}/*.h ${TARGETDIR}/include/tn
|
||||
${INSTALL_DATA} ${WRKSRC}/libtn.a ${TARGETDIR}/lib
|
||||
@${MKDIR} ${PREFIX}/include/tn
|
||||
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/tn
|
||||
${INSTALL_DATA} ${WRKSRC}/libtn.a ${PREFIX}/lib
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}/screenshot
|
||||
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
|
||||
|
@ -28,7 +28,7 @@ do-build:
|
||||
${CXX} -o ${WRKSRC}/dualserver ${WRKSRC}/dualserver.cpp
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dualserver ${TARGETDIR}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/dualserver.ini ${TARGETDIR}/etc/dualserver.conf.sample
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dualserver ${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/dualserver.ini ${PREFIX}/etc/dualserver.conf.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -27,8 +27,8 @@ post-patch:
|
||||
@${REINPLACE_CMD} "s|<curses.h>|<ncurses.h>|" ${WRKSRC}/sted.c
|
||||
|
||||
do-install:
|
||||
@ ${INSTALL_PROGRAM} ${WRKSRC}/sted ${TARGETDIR}/bin
|
||||
@ ${INSTALL_MAN} ${WRKSRC}/sted.1 ${TARGETDIR}/man/man1
|
||||
@ ${INSTALL_PROGRAM} ${WRKSRC}/sted ${PREFIX}/bin
|
||||
@ ${INSTALL_MAN} ${WRKSRC}/sted.1 ${PREFIX}/man/man1
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ ${MKDIR} ${DOCSDIR}
|
||||
.for file in ${PORTDOCS}
|
||||
|
@ -24,7 +24,7 @@ PLIST_FILES= bin/cryptcat
|
||||
PORTDOCS= README.cryptcat
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/cryptcat ${TARGETDIR}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/cryptcat ${PREFIX}/bin
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
|
||||
|
@ -23,7 +23,6 @@ PLIST_DIRS= libexec/chroot_safe
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|CXX=g++|CXX?=c++|' \
|
||||
-e 's|-o chroot_safe.so|chroot_safe.cpp -o chroot_safe.so|' \
|
||||
-e 's|prefix=@prefix@|prefix=${DESTDIR}@prefix@|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
${REINPLACE_CMD} 's|chroot(1)|chroot(8)|' ${WRKSRC}/chroot_safe.1.in
|
||||
${REINPLACE_CMD} 's|putenv|unsetenv|' ${WRKSRC}/chroot_safe.cpp
|
||||
|
@ -30,7 +30,7 @@ post-patch:
|
||||
-e 's|CFLAGS =|CFLAGS +=|' ${WRKSRC}/Makefile.global
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ssl_proxy ${TARGETDIR}/sbin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ssl_proxy ${PREFIX}/sbin
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
|
@ -27,11 +27,11 @@ MAN1= gsed.1
|
||||
|
||||
# Local variables
|
||||
PATCH_SUBDIRS= . doc lib sed
|
||||
DATADIR= ${TARGETDIR}/share/${PKGBASE}
|
||||
DATADIR= ${PREFIX}/share/${PKGBASE}
|
||||
SAMP_FILES= binary*.sed dc.sed
|
||||
EXAMPLESDIR= ${TARGETDIR}/share/examples/${PKGBASE}
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE}
|
||||
PORTDOCS= AUTHORS BUGS COPYING COPYING.DOC NEWS README THANKS
|
||||
DOCSDIR= ${TARGETDIR}/share/doc/${PKGBASE}
|
||||
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user