pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/teamspeak-server Use INSTALLATION_DIRS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a666e91a1d11
branches:  trunk
changeset: 529901:a666e91a1d11
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jun 12 14:39:22 2007 +0000

description:
Use INSTALLATION_DIRS.

diffstat:

 net/teamspeak-server/Makefile |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r e84557e6064c -r a666e91a1d11 net/teamspeak-server/Makefile
--- a/net/teamspeak-server/Makefile     Tue Jun 12 14:08:37 2007 +0000
+++ b/net/teamspeak-server/Makefile     Tue Jun 12 14:39:22 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/05/01 11:34:05 abs Exp $
+# $NetBSD: Makefile,v 1.3 2007/06/12 14:39:22 joerg Exp $
 
 PKGNAME=               teamspeak-server-2.0.23.15
 DISTNAME=              ts2_server_rc2_20201
@@ -59,22 +59,23 @@
 
 FILES_SUBST+=          TSUSER=${TSUSER}
 
+INSTALLATION_DIRS=     ${LIB_DIR} share/examples/rc.d ${SHARE_DIR}/httpdocs \
+                       ${SHARE_DIR}/tcpquerydocs ${SHARE_DIR}/mysql_sql \
+                       ${SHARE_DIR}/sqlite_sql ${DOC_DIR}/Manual
+
 do-build:
        ${MV} ${WRKSRC}/Manual/_TeamSpeak\ RC2\ Server\ manual-1.png \
              ${WRKSRC}/Manual/_TeamSpeak_RC2_Server_manual-1.png
 
 do-install:
-       ${INSTALL_DATA_DIR} ${LIB_DIR}
        ${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/server_linux ${LIB_DIR}/teamspeak-server
        ${INSTALL_LIB} ${WRKSRC}/*.so* ${LIB_DIR}
        ${INSTALL_SCRIPT} -m 644 ${FILESDIR}/teamspeak.sh ${PREFIX}/share/examples/rc.d/teamspeak
        for d in httpdocs tcpquerydocs mysql_sql sqlite_sql ; do \
-       ${INSTALL_DATA_DIR} ${SHARE_DIR}/$$d;\
        cd ${WRKSRC}/$$d && ${PAX} -rw . ${SHARE_DIR}/$$d;\
        ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SHARE_DIR}/$$d;\
        ${FIND} ${SHARE_DIR}/$$d -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE};\
        done
-       ${INSTALL_DATA_DIR} ${DOC_DIR}/Manual
        ${INSTALL_DATA} -m 644 ${WRKSRC}/Manual/* ${DOC_DIR}/Manual
        ${INSTALL_DATA} -m 644 ${WRKSRC}/changelog.txt ${DOC_DIR}
        ${INSTALL_DATA} -m 644 ${WRKSRC}/manual.html ${DOC_DIR}



Home | Main Index | Thread Index | Old Index