diff options
author | jlam <jlam> | 2005-12-31 04:05:31 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-12-31 04:05:31 +0000 |
commit | fbc8e335d4fa61e038cbf474dc10c794a05473e4 (patch) | |
tree | 8597eaa2ecaa1673cc84082919cc677f87e8b6fb | |
parent | c792fd5f9bd75d08ba2cf84076e9bebfe054fc57 (diff) | |
download | pkgsrc-fbc8e335d4fa61e038cbf474dc10c794a05473e4.tar.gz |
Per pkgsrc guidelines, move the documentation to be stored under
${PREFIX}/share/doc/${PKGBASE}. Also, generate the documentation
PLIST entries dynamically since those files are generated from SGML,
and their names can change quite a bit from release to release.
Bump the PKGREVISION to 3.
-rw-r--r-- | databases/freetds/Makefile | 32 | ||||
-rw-r--r-- | databases/freetds/PLIST | 173 |
2 files changed, 30 insertions, 175 deletions
diff --git a/databases/freetds/Makefile b/databases/freetds/Makefile index 817b9d62446..c1f6d242a0d 100644 --- a/databases/freetds/Makefile +++ b/databases/freetds/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.31 2005/12/30 21:07:42 jlam Exp $ +# $NetBSD: Makefile,v 1.32 2005/12/31 04:05:31 jlam Exp $ DISTNAME= freetds-0.63 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= databases MASTER_SITES= ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/ @@ -23,7 +23,7 @@ CONFIGURE_ARGS+= --with-tdsver=7.0 # no thread-safe resolver functions on NetBSD CONFIGURE_ARGS+= --disable-threadsafe -INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} ETC=${EGDIR:Q} +INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} ETC=${EGDIR:Q} DOCDIR=doc/${PKGBASE:Q} EGDIR= ${PREFIX}/share/examples/freetds CONF_FILES= ${EGDIR}/freetds.conf ${PKG_SYSCONFDIR}/freetds.conf @@ -31,4 +31,30 @@ CONF_FILES+= ${EGDIR}/locales.conf ${PKG_SYSCONFDIR}/locales.conf CONF_FILES+= ${EGDIR}/pool.conf ${PKG_SYSCONFDIR}/pool.conf .include "../../converters/libiconv/buildlink3.mk" + +PLIST_SRC= ${PKGDIR}/PLIST ${WRKDIR}/.PLIST.doc + +# Workaround a weird problem in the source Makefiles that prevents +# easily changing the installation directory for the documentation. +# +pre-build: + cd ${WRKSRC}/doc/doc && ln -s ${PKGNAME_NOREV:Q} ${PKGBASE:Q} + +# Dynamically generate PLIST entries for the documentation. This target +# may need to be modified for future FreeTDS releases. +# +${WRKDIR}/.PLIST.doc: + { cd ${WRKSRC}/doc/doc/${PKGNAME_NOREV}; \ + find reference userguide \( -type f -o -type l \) -print; \ + cd ${WRKSRC}/doc; \ + find images -name \*.gif -print; \ + } | sed "s,^,share/doc/"${PKGBASE:Q}"/," | sort -u \ + > ${.TARGET} + { cd ${WRKSRC}/doc/doc/${PKGNAME_NOREV}; \ + find reference userguide -type d -print; \ + ${ECHO} "images"; \ + } | sed "s,^,@dirrm share/doc/"${PKGBASE:Q}"/," | sort -ur \ + >> ${.TARGET} + ${ECHO} "@dirrm share/doc/"${PKGBASE:Q} >> ${.TARGET} + .include "../../mk/bsd.pkg.mk" diff --git a/databases/freetds/PLIST b/databases/freetds/PLIST index 088ac7eebe1..c92af6c247b 100644 --- a/databases/freetds/PLIST +++ b/databases/freetds/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.14 2005/12/30 21:07:42 jlam Exp $ +@comment $NetBSD: PLIST,v 1.15 2005/12/31 04:05:31 jlam Exp $ bin/bsqldb bin/defncopy bin/freebcp @@ -27,178 +27,7 @@ man/man1/bsqldb.1 man/man1/defncopy.1 man/man1/freebcp.1 man/man1/tsql.1 -share/doc/${PKGNAME}/images/important.gif -share/doc/${PKGNAME}/images/note.gif -share/doc/${PKGNAME}/images/tip.gif -share/doc/${PKGNAME}/reference/a00064.html -share/doc/${PKGNAME}/reference/a00075.html -share/doc/${PKGNAME}/reference/a00081.html -share/doc/${PKGNAME}/reference/a00082.html -share/doc/${PKGNAME}/reference/a00083.html -share/doc/${PKGNAME}/reference/a00085.html -share/doc/${PKGNAME}/reference/a00087.html -share/doc/${PKGNAME}/reference/a00156.html -share/doc/${PKGNAME}/reference/a00159.html -share/doc/${PKGNAME}/reference/a00194.html -share/doc/${PKGNAME}/reference/a00197.html -share/doc/${PKGNAME}/reference/a00198.html -share/doc/${PKGNAME}/reference/a00213.html -share/doc/${PKGNAME}/reference/a00217.html -share/doc/${PKGNAME}/reference/a00232.html -share/doc/${PKGNAME}/reference/a00255.html -share/doc/${PKGNAME}/reference/a00307.html -share/doc/${PKGNAME}/reference/a00310.html -share/doc/${PKGNAME}/reference/a00336.html -share/doc/${PKGNAME}/reference/a00337.html -share/doc/${PKGNAME}/reference/a00338.html -share/doc/${PKGNAME}/reference/a00339.html -share/doc/${PKGNAME}/reference/a00340.html -share/doc/${PKGNAME}/reference/a00341.html -share/doc/${PKGNAME}/reference/a00342.html -share/doc/${PKGNAME}/reference/a00343.html -share/doc/${PKGNAME}/reference/a00344.html -share/doc/${PKGNAME}/reference/a00345.html -share/doc/${PKGNAME}/reference/a00346.html -share/doc/${PKGNAME}/reference/a00347.html -share/doc/${PKGNAME}/reference/a00348.html -share/doc/${PKGNAME}/reference/a00349.html -share/doc/${PKGNAME}/reference/a00350.html -share/doc/${PKGNAME}/reference/a00351.html -share/doc/${PKGNAME}/reference/a00352.html -share/doc/${PKGNAME}/reference/a00353.html -share/doc/${PKGNAME}/reference/a00354.html -share/doc/${PKGNAME}/reference/a00356.html -share/doc/${PKGNAME}/reference/a00358.html -share/doc/${PKGNAME}/reference/a00359.html -share/doc/${PKGNAME}/reference/a00360.html -share/doc/${PKGNAME}/reference/a00361.html -share/doc/${PKGNAME}/reference/a00362.html -share/doc/${PKGNAME}/reference/a00363.html -share/doc/${PKGNAME}/reference/a00364.html -share/doc/${PKGNAME}/reference/a00365.html -share/doc/${PKGNAME}/reference/a00366.html -share/doc/${PKGNAME}/reference/a00367.html -share/doc/${PKGNAME}/reference/a00368.html -share/doc/${PKGNAME}/reference/a00369.html -share/doc/${PKGNAME}/reference/a00370.html -share/doc/${PKGNAME}/reference/a00371.html -share/doc/${PKGNAME}/reference/a00372.html -share/doc/${PKGNAME}/reference/a00373.html -share/doc/${PKGNAME}/reference/a00374.html -share/doc/${PKGNAME}/reference/a00375.html -share/doc/${PKGNAME}/reference/a00376.html -share/doc/${PKGNAME}/reference/a00377.html -share/doc/${PKGNAME}/reference/a00378.html -share/doc/${PKGNAME}/reference/a00379.html -share/doc/${PKGNAME}/reference/a00380.html -share/doc/${PKGNAME}/reference/a00381.html -share/doc/${PKGNAME}/reference/a00382.html -share/doc/${PKGNAME}/reference/a00383.html -share/doc/${PKGNAME}/reference/a00384.html -share/doc/${PKGNAME}/reference/a00385.html -share/doc/${PKGNAME}/reference/a00386.html -share/doc/${PKGNAME}/reference/a00387.html -share/doc/${PKGNAME}/reference/a00388.html -share/doc/${PKGNAME}/reference/a00389.html -share/doc/${PKGNAME}/reference/a00391.html -share/doc/${PKGNAME}/reference/a00393.html -share/doc/${PKGNAME}/reference/a00394.html -share/doc/${PKGNAME}/reference/a00395.html -share/doc/${PKGNAME}/reference/a00396.html -share/doc/${PKGNAME}/reference/a00397.html -share/doc/${PKGNAME}/reference/a00398.html -share/doc/${PKGNAME}/reference/a00399.html -share/doc/${PKGNAME}/reference/annotated.html -share/doc/${PKGNAME}/reference/bug.html -share/doc/${PKGNAME}/reference/doxygen.css -share/doc/${PKGNAME}/reference/doxygen.png -share/doc/${PKGNAME}/reference/files.html -share/doc/${PKGNAME}/reference/functions.html -share/doc/${PKGNAME}/reference/globals.html -share/doc/${PKGNAME}/reference/index.html -share/doc/${PKGNAME}/reference/modules.html -share/doc/${PKGNAME}/reference/pages.html -share/doc/${PKGNAME}/reference/todo.html -share/doc/${PKGNAME}/userguide/about.htm -share/doc/${PKGNAME}/userguide/aboutunicode.htm -share/doc/${PKGNAME}/userguide/acknowledgments.htm -share/doc/${PKGNAME}/userguide/advocacy.htm -share/doc/${PKGNAME}/userguide/apireference.htm -share/doc/${PKGNAME}/userguide/appendmode.htm -share/doc/${PKGNAME}/userguide/askingforhelp.htm -share/doc/${PKGNAME}/userguide/build.htm -share/doc/${PKGNAME}/userguide/choosingtdsprotocol.htm -share/doc/${PKGNAME}/userguide/config.htm -share/doc/${PKGNAME}/userguide/configs.htm -share/doc/${PKGNAME}/userguide/configurations.htm -share/doc/${PKGNAME}/userguide/confirminstall.htm -share/doc/${PKGNAME}/userguide/contrib.htm -share/doc/${PKGNAME}/userguide/contributors.htm -share/doc/${PKGNAME}/userguide/ctlib.api.summary.htm -share/doc/${PKGNAME}/userguide/dblib.api.summary.htm -share/doc/${PKGNAME}/userguide/domains.htm -share/doc/${PKGNAME}/userguide/dsnless.htm -share/doc/${PKGNAME}/userguide/envvar.htm -share/doc/${PKGNAME}/userguide/freetdsconf.htm -share/doc/${PKGNAME}/userguide/freetdshistory.htm -share/doc/${PKGNAME}/userguide/gfdl-1.htm -share/doc/${PKGNAME}/userguide/gfdl-10.htm -share/doc/${PKGNAME}/userguide/gfdl-11.htm -share/doc/${PKGNAME}/userguide/gfdl-2.htm -share/doc/${PKGNAME}/userguide/gfdl-3.htm -share/doc/${PKGNAME}/userguide/gfdl-4.htm -share/doc/${PKGNAME}/userguide/gfdl-5.htm -share/doc/${PKGNAME}/userguide/gfdl-6.htm -share/doc/${PKGNAME}/userguide/gfdl-7.htm -share/doc/${PKGNAME}/userguide/gfdl-8.htm -share/doc/${PKGNAME}/userguide/gfdl-9.htm -share/doc/${PKGNAME}/userguide/gfdl.htm -share/doc/${PKGNAME}/userguide/help.htm -share/doc/${PKGNAME}/userguide/index.htm -share/doc/${PKGNAME}/userguide/index.html -share/doc/${PKGNAME}/userguide/install.htm -share/doc/${PKGNAME}/userguide/interfacesfile.htm -share/doc/${PKGNAME}/userguide/interfacesformat.htm -share/doc/${PKGNAME}/userguide/interfaceslocation.htm -share/doc/${PKGNAME}/userguide/interfacespurpose.htm -share/doc/${PKGNAME}/userguide/iso8859.htm -share/doc/${PKGNAME}/userguide/locales.htm -share/doc/${PKGNAME}/userguide/logging.htm -share/doc/${PKGNAME}/userguide/mailinglist.htm -share/doc/${PKGNAME}/userguide/nonwestern.htm -share/doc/${PKGNAME}/userguide/odbc.api.summary.htm -share/doc/${PKGNAME}/userguide/odbcconnattr.htm -share/doc/${PKGNAME}/userguide/odbcdiagnose.htm -share/doc/${PKGNAME}/userguide/odbcinionly.htm -share/doc/${PKGNAME}/userguide/odbcombo.htm -share/doc/${PKGNAME}/userguide/osissues.htm -share/doc/${PKGNAME}/userguide/packages.htm -share/doc/${PKGNAME}/userguide/pagenodata.htm -share/doc/${PKGNAME}/userguide/perl.htm -share/doc/${PKGNAME}/userguide/php.htm -share/doc/${PKGNAME}/userguide/prepodbc.htm -share/doc/${PKGNAME}/userguide/programming.htm -share/doc/${PKGNAME}/userguide/projects.htm -share/doc/${PKGNAME}/userguide/python.htm -share/doc/${PKGNAME}/userguide/samplecode.htm -share/doc/${PKGNAME}/userguide/seemtooslow.htm -share/doc/${PKGNAME}/userguide/serverthere.htm -share/doc/${PKGNAME}/userguide/software.htm -share/doc/${PKGNAME}/userguide/stunnel.htm -share/doc/${PKGNAME}/userguide/sybsql.htm -share/doc/${PKGNAME}/userguide/tdshistory.htm -share/doc/${PKGNAME}/userguide/tdspool.htm -share/doc/${PKGNAME}/userguide/troubleshooting.htm -share/doc/${PKGNAME}/userguide/unicode.htm -share/doc/${PKGNAME}/userguide/unicodefreetds.htm -share/doc/${PKGNAME}/userguide/unicodegoodbad.htm -share/doc/${PKGNAME}/userguide/unicodeutf.htm -share/doc/${PKGNAME}/userguide/what.htm share/examples/freetds/freetds.conf share/examples/freetds/locales.conf share/examples/freetds/pool.conf @dirrm share/examples/freetds -@dirrm share/doc/${PKGNAME}/userguide -@dirrm share/doc/${PKGNAME}/reference -@dirrm share/doc/${PKGNAME}/images -@dirrm share/doc/${PKGNAME} |