2021-05-24 21:49:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.95 2021/05/24 19:55:59 wiz Exp $
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2016-08-21 11:53:55 +02:00
|
|
|
DISTNAME= wwwoffle-2.9j
|
2021-05-24 21:49:01 +02:00
|
|
|
PKGREVISION= 10
|
1998-06-06 19:03:58 +02:00
|
|
|
CATEGORIES= www
|
2019-11-04 23:09:50 +01:00
|
|
|
MASTER_SITES= http://www.gedanken.org.uk/software/wwwoffle/download/
|
1998-06-06 19:03:58 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2019-11-04 23:09:50 +01:00
|
|
|
MAINTAINER= ginger@email.su
|
2016-08-21 11:53:55 +02:00
|
|
|
HOMEPAGE= http://www.gedanken.org.uk/software/wwwoffle
|
|
|
|
LICENSE= gnu-gpl-v2
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= WWW proxy with support for offline browsing
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2007-12-21 23:54:56 +01:00
|
|
|
USE_TOOLS+= gmake gzip perl tar lex
|
2002-03-10 23:14:29 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2016-08-21 11:53:55 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2019-11-04 23:09:50 +01:00
|
|
|
CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-spooldir=${VARBASE}/wwwoffle
|
1998-07-13 20:20:08 +02:00
|
|
|
|
2020-03-27 21:51:43 +01:00
|
|
|
CHECK_PORTABILITY_SKIP+= configure.in
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
PKG_SYSCONFSUBDIR= wwwoffle
|
2006-04-11 10:10:40 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/wwwoffle/wwwoffle.conf ${PKG_SYSCONFDIR}/wwwoffle.conf
|
|
|
|
CONF_FILES_MODE= 0640
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= GZIP_CMD=${GZIP_CMD:Q}
|
2003-08-29 11:25:40 +02:00
|
|
|
|
2007-03-24 20:21:18 +01:00
|
|
|
INSTALLATION_DIRS= sbin libdata
|
|
|
|
|
2003-08-29 11:25:40 +02:00
|
|
|
RCD_SCRIPTS= wwwoffled
|
1999-12-07 09:50:49 +01:00
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
SUBST_CLASSES+= fix-paths
|
|
|
|
SUBST_STAGE.fix-paths= pre-configure
|
|
|
|
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
|
|
|
|
SUBST_FILES.fix-paths= cache/search/namazu/scripts/wwwoffle-namazu
|
|
|
|
SUBST_FILES.fix-paths+= cache/search/hyperestraier/scripts/wwwoffle-estseek
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.fix-paths= PREFIX
|
2006-09-26 15:48:43 +02:00
|
|
|
|
2006-02-23 00:00:37 +01:00
|
|
|
.include "options.mk"
|
2004-06-08 14:23:59 +02:00
|
|
|
|
2006-10-23 13:06:23 +02:00
|
|
|
post-extract:
|
|
|
|
chmod -R go-w ${WRKSRC}
|
|
|
|
|
1998-06-06 19:03:58 +02:00
|
|
|
post-build:
|
2002-03-10 23:14:29 +01:00
|
|
|
cd ${WRKSRC}/cache/search/htdig/scripts; \
|
2001-03-12 19:05:24 +01:00
|
|
|
for f in wwwoffle-ht*; do \
|
|
|
|
${MV} $$f $$f.old; \
|
|
|
|
${SED} -e '/htsearch/s#^#${PREFIX}/libexec/cgi-bin/#' \
|
2002-08-10 19:03:26 +02:00
|
|
|
-e 's#/usr/local#${PREFIX}#' $$f.old > $$f; \
|
2001-03-12 19:05:24 +01:00
|
|
|
${RM} $$f.old; \
|
|
|
|
done
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2009-02-13 23:37:02 +01:00
|
|
|
|
2002-09-05 18:56:54 +02:00
|
|
|
# For bulk-build machines: a one-time install/deinstall, if wwwoffle
|
|
|
|
# is never run, leaves an incomplete cache directory, which the install
|
|
|
|
# target incorrectly calculates to be a pre-2.2 cache. This tricks it
|
|
|
|
# into setting up the cache directory properly.
|
|
|
|
pre-install:
|
2009-02-13 23:37:02 +01:00
|
|
|
${MKDIR} ${DESTDIR}${VARBASE}/wwwoffle/prevtime1
|
2002-09-05 18:56:54 +02:00
|
|
|
|
1998-06-06 19:03:58 +02:00
|
|
|
post-install:
|
2002-03-10 23:14:29 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config.pl \
|
2009-02-13 23:37:02 +01:00
|
|
|
${DESTDIR}${PREFIX}/sbin/wwwoffle-upgrade-config.pl
|
2006-09-26 15:48:43 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config-2.0-2.5.pl \
|
2009-02-13 23:37:02 +01:00
|
|
|
${DESTDIR}${PREFIX}/sbin/wwwoffle-upgrade-config-2.0-2.5.pl
|
2002-03-10 23:14:29 +01:00
|
|
|
# Directories other than html and search are automatically created at run time
|
2009-02-13 23:37:02 +01:00
|
|
|
${TAR} cCf ${DESTDIR}/ - var/wwwoffle/html var/wwwoffle/search | \
|
|
|
|
${GZIP_CMD} -9 \
|
|
|
|
> ${DESTDIR}${PREFIX}/libdata/wwwoffle-spool.tar.gz
|
|
|
|
${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/ru
|
|
|
|
${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/nl
|
|
|
|
${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/it
|
2001-03-12 19:05:24 +01:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Attention pkgsrc source users:
|
|
|
|
@${ECHO}
|
2002-03-25 10:17:55 +01:00
|
|
|
@${ECHO} 'Please run' "\`make finish'" 'from this directory *after*'
|
|
|
|
@${ECHO} '(optionally) running' "\`make package'", 'in order to fix'
|
|
|
|
@${ECHO} 'up the installed "wwwoffle.pac" files to your hostname'
|
|
|
|
@${ECHO} 'and convert your config file and cache to the new format.'
|
2001-03-12 19:05:24 +01:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
|
|
|
|
@${ECHO}
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2002-03-25 10:17:55 +01:00
|
|
|
# We don't do the following automatically, as that would inconvenience
|
|
|
|
# package build machines, not to mention putting the wrong information
|
|
|
|
# into the "wwwoffle.pac" files.
|
2006-02-23 00:01:28 +01:00
|
|
|
.PHONY: finish
|
2002-03-25 10:17:55 +01:00
|
|
|
finish:
|
2002-08-10 19:03:26 +02:00
|
|
|
${SETENV} CONFDIR="${PKG_SYSCONFDIR}" PKG_PREFIX="${PREFIX}" \
|
|
|
|
${SH} INSTALL _ POST-INSTALL
|
2002-03-25 10:17:55 +01:00
|
|
|
|
2011-11-26 05:39:19 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
1998-06-06 19:03:58 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|