Skip to content

Commit

Permalink
www/tinyproxy: Use pre-built manpages from release tarball
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed May 7, 2021
1 parent 0f99e0a commit f444757
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 847 deletions.
11 changes: 6 additions & 5 deletions www/tinyproxy/Makefile
Expand Up @@ -2,9 +2,9 @@

PORTNAME= tinyproxy
PORTVERSION= 1.11.0
MASTER_SITES= https://github.com/tinyproxy/tinyproxy/releases/download/${PORTVERSION}/
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= https://github.com/tinyproxy/tinyproxy/releases/download/${PORTVERSION}/

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Small, efficient HTTP proxy server
Expand All @@ -15,6 +15,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake tar:xz

CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
--disable-manpage_support \
--program-transform-name=""
GNU_CONFIGURE= yes
USE_RC_SUBR= tinyproxy
Expand All @@ -30,14 +31,14 @@ XHEADER_CONFIGURE_ENABLE= xtinyproxy

post-patch:
@${REINPLACE_CMD} -e 's|tinyproxy/tinyproxy|tinyproxy|g; s|/etc/tinyproxy|${PREFIX}&|' \
${WRKSRC}/docs/man5/tinyproxy.conf.txt.in \
${WRKSRC}/docs/man8/tinyproxy.txt.in \
${WRKSRC}/docs/man5/tinyproxy.conf.5 \
${WRKSRC}/docs/man8/tinyproxy.8 \
${WRKSRC}/etc/tinyproxy.conf.in
@${REINPLACE_CMD} -e '/\/usr\/share\/tinyproxy/d; s|^#\(LogFile \)|\1|; s|^#\(PidFile \)|\1|' ${WRKSRC}/etc/tinyproxy.conf.in

post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/tinyproxy.conf ${STAGEDIR}${PREFIX}/etc/tinyproxy.conf.sample
${INSTALL_MAN} ${FILESDIR}/tinyproxy.conf.5 ${STAGEDIR}${PREFIX}/share/man/man5/
${INSTALL_MAN} ${FILESDIR}/tinyproxy.8 ${STAGEDIR}${PREFIX}/share/man/man8/
${INSTALL_MAN} ${WRKSRC}/docs/man5/tinyproxy.conf.5 ${STAGEDIR}${PREFIX}/share/man/man5/
${INSTALL_MAN} ${WRKSRC}/docs/man8/tinyproxy.8 ${STAGEDIR}${PREFIX}/share/man/man8/

.include <bsd.port.mk>
114 changes: 0 additions & 114 deletions www/tinyproxy/files/patch-configure

This file was deleted.

165 changes: 0 additions & 165 deletions www/tinyproxy/files/tinyproxy.8

This file was deleted.

0 comments on commit f444757

Please sign in to comment.