pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/cvsweb pkgsrc'ify cvsweb with the following changes:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/11b33c51bdc1
branches:  trunk
changeset: 476401:11b33c51bdc1
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed Jun 09 18:55:11 2004 +0000

description:
pkgsrc'ify cvsweb with the following changes:

        o Use subst.mk to patch the files (so the patches are not needed).
        o Look for cvsweb.conf in ${PKG_SYSCONFDIR} instead of using
          a harcoded "/usr/pkg/etc/cvsweb".

diffstat:

 www/cvsweb/Makefile         |  13 ++++++++++---
 www/cvsweb/distinfo         |   5 +----
 www/cvsweb/patches/patch-aa |  22 ----------------------
 www/cvsweb/patches/patch-ab |  15 ---------------
 www/cvsweb/patches/patch-ac |  12 ------------
 5 files changed, 11 insertions(+), 56 deletions(-)

diffs (113 lines):

diff -r 18194c83f460 -r 11b33c51bdc1 www/cvsweb/Makefile
--- a/www/cvsweb/Makefile       Wed Jun 09 17:53:04 2004 +0000
+++ b/www/cvsweb/Makefile       Wed Jun 09 18:55:11 2004 +0000
@@ -1,5 +1,5 @@
 #
-# $NetBSD: Makefile,v 1.21 2004/06/09 01:56:15 lukem Exp $
+# $NetBSD: Makefile,v 1.22 2004/06/09 18:55:11 xtraeme Exp $
 #
 
 DISTNAME=              cvsweb-3.0.1
@@ -17,6 +17,7 @@
 DEPENDS+=              p5-URI>=1.30:../../www/p5-URI
 
 NO_BUILDLINK=          YES
+NO_BUILD=              YES
 USE_PERL5=             # defined
 USE_PKGINSTALL=                YES
 
@@ -47,8 +48,6 @@
 DEPENDS+=              rcs-[0-9]*:../../devel/rcs
 .endif
 
-do-build:
-
 do-install:
        ${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/cgi-bin
        ${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/libexec/cgi-bin
@@ -69,4 +68,12 @@
        ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}/${f}
 .endfor
 
+SUBST_CLASSES=         prefix
+SUBST_STAGE.prefix=    post-patch
+SUBST_FILES.prefix=    cvsweb.conf cvsweb.cgi INSTALL  
+SUBST_SED.prefix=      -e "s,/usr/local/etc/apache,${PKG_SYSCONFBASE}/httpd,g"
+SUBST_SED.prefix+=     -e "s,/usr/local/etc/cvsweb,${PKG_SYSCONFDIR},g"
+SUBST_SED.prefix+=     -e "s,/usr/local/bin,${LOCALBASE}/bin,g"
+SUBST_MESSAGE.prefix=  "Fixing harcoded paths."
+
 .include "../../mk/bsd.pkg.mk"
diff -r 18194c83f460 -r 11b33c51bdc1 www/cvsweb/distinfo
--- a/www/cvsweb/distinfo       Wed Jun 09 17:53:04 2004 +0000
+++ b/www/cvsweb/distinfo       Wed Jun 09 18:55:11 2004 +0000
@@ -1,7 +1,4 @@
-$NetBSD: distinfo,v 1.11 2004/06/09 01:54:16 lukem Exp $
+$NetBSD: distinfo,v 1.12 2004/06/09 18:55:11 xtraeme Exp $
 
 SHA1 (cvsweb-3.0.1.tar.gz) = 52ae5e8cc65cef7c3fdc33f9369fe00b2c5af8da
 Size (cvsweb-3.0.1.tar.gz) = 69916 bytes
-SHA1 (patch-aa) = 6b5b4e70a493068cae6e4859f7f86b91249d4e71
-SHA1 (patch-ab) = 7419965bf4e078c1f72e8ddb9834959215d3a477
-SHA1 (patch-ac) = f1dc55f458de536624e6c44c526490a21b3d25e0
diff -r 18194c83f460 -r 11b33c51bdc1 www/cvsweb/patches/patch-aa
--- a/www/cvsweb/patches/patch-aa       Wed Jun 09 17:53:04 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-aa,v 1.9 2004/06/09 01:54:16 lukem Exp $
-
---- cvsweb.conf.orig   2004-05-05 09:40:50.000000000 +1000
-+++ cvsweb.conf
-@@ -19,7 +19,7 @@
- #   cvsgraph (if you enable $allow_graph)
- #   enscript (if you enable $allow_enscript)
- #
--@command_path = qw(/bin /usr/bin /usr/local/bin);
-+@command_path = qw(/bin /usr/bin /usr/pkg/bin /usr/local/bin);
- 
- # Search the above directories for each command (prefer gtar over tar).
- #
-@@ -344,7 +344,7 @@ $inputTextSize = 12;
- # The traditional mime.types file, eg. the one from Apache is fine.
- # See above where this gets used.
- #
--$mime_types = '/usr/local/etc/apache/mime.types';
-+$mime_types = '/usr/pkg/etc/httpd/mime.types';
- 
- # Charset appended to the Content-Type HTTP header for text/* MIME types.
- # Note that the web server may default to some charset which may take effect
diff -r 18194c83f460 -r 11b33c51bdc1 www/cvsweb/patches/patch-ab
--- a/www/cvsweb/patches/patch-ab       Wed Jun 09 17:53:04 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ab,v 1.6 2004/06/09 01:54:16 lukem Exp $
-
---- cvsweb.cgi.orig    2004-05-09 00:13:40.000000000 +1000
-+++ cvsweb.cgi
-@@ -214,7 +214,9 @@ my ($mydir) = (dirname($0) =~ /(.*)/);  
- 
- # == EDIT this ==
- # Locations to search for user configuration, in order:
--for (catfile($mydir, 'cvsweb.conf'), '/usr/local/etc/cvsweb/cvsweb.conf') {
-+for (catfile($mydir, 'cvsweb.conf'),
-+    '/usr/pkg/etc/cvsweb/cvsweb.conf',
-+    '/usr/local/etc/cvsweb/cvsweb.conf') {
-   if (-r $_) {
-     $config = $_;
-     last;
diff -r 18194c83f460 -r 11b33c51bdc1 www/cvsweb/patches/patch-ac
--- a/www/cvsweb/patches/patch-ac       Wed Jun 09 17:53:04 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2004/06/09 01:54:16 lukem Exp $
-
---- INSTALL.orig       2004-05-09 00:13:40.000000000 +1000
-+++ INSTALL
-@@ -49,6 +49,7 @@ of this document.
-    configuration notes.  You'll need version 2.0 or newer.
- 
- 2) Copy cvsweb.conf to a configuration directory, typically
-+   /usr/pkg/etc/cvsweb/cvsweb.conf or
-    /usr/local/etc/cvsweb/cvsweb.conf.
-    Edit cvsweb.conf to fit your needs, you'll probably need to tweak the
-    CVS root(s) of the Repository(ies) you want to view.



Home | Main Index | Thread Index | Old Index