1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Use upstream release tarball

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-08-30 07:14:42 +00:00
parent d3f3036924
commit 6fca5d6a53
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546997
8 changed files with 271 additions and 92 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= tinyproxy
PORTVERSION= 1.10.0
MASTER_SITES= https://github.com/tinyproxy/tinyproxy/releases/download/${PORTVERSION}/
PORTEPOCH= 1
CATEGORIES= www
@ -12,19 +13,17 @@ COMMENT= Small, efficient HTTP proxy server
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= REVERSE TRANSPARENT XHEADER
REVERSE_DESC= Reverse proxy support
TRANSPARENT_DESC= Transparent proxy support
XHEADER_DESC= X-Tinyproxy header
USES= autoreconf gmake
USES= gmake tar:xz
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
--program-transform-name=""
GNU_CONFIGURE= yes
USE_RC_SUBR= ${PORTNAME}
USE_RC_SUBR= tinyproxy
USE_GITHUB= yes
OPTIONS_DEFINE= REVERSE TRANSPARENT XHEADER
REVERSE_DESC= Reverse proxy support
TRANSPARENT_DESC= Transparent proxy support
XHEADER_DESC= X-Tinyproxy header
REVERSE_CONFIGURE_ENABLE= reverse
TRANSPARENT_CONFIGURE_ENABLE= transparent
@ -35,11 +34,10 @@ post-patch:
${WRKSRC}/docs/man5/tinyproxy.conf.txt.in \
${WRKSRC}/docs/man8/tinyproxy.txt.in \
${WRKSRC}/etc/tinyproxy.conf.in
@${REINPLACE_CMD} -e 's|pkgsysconf_DATA|sysconf_DATA|' ${WRKSRC}/etc/Makefile.am
@${REINPLACE_CMD} -e '/\/usr\/share\/tinyproxy/d; s|^#\(LogFile \)|\1|; s|^#\(PidFile \)|\1|' ${WRKSRC}/etc/tinyproxy.conf.in
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/tinyproxy.conf ${STAGEDIR}${PREFIX}/etc/tinyproxy.conf.sample
${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/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1546784454
SHA256 (tinyproxy-tinyproxy-1.10.0_GH0.tar.gz) = ff4f3d1331d6d855d8b6ed794c22ab0a4285dd81fe9c98a7aa7ed591248d4ab9
SIZE (tinyproxy-tinyproxy-1.10.0_GH0.tar.gz) = 102337
TIMESTAMP = 1598616645
SHA256 (tinyproxy-1.10.0.tar.xz) = 59be87689c415ba0d9c9bc6babbdd3df3b372d60b21e526b118d722dbc995682
SIZE (tinyproxy-1.10.0.tar.xz) = 176060

View File

@ -1,10 +0,0 @@
--- Makefile.am.orig 2014-12-13 00:57:23 UTC
+++ Makefile.am
@@ -2,7 +2,6 @@ SUBDIRS = \
src \
data \
etc \
- docs \
m4macros \
tests

View File

@ -0,0 +1,10 @@
--- Makefile.in.orig 2018-09-01 02:12:08 UTC
+++ Makefile.in
@@ -343,7 +343,6 @@ SUBDIRS = \
src \
data \
etc \
- docs \
m4macros \
tests

View File

@ -0,0 +1,234 @@
--- configure.orig 2018-09-01 02:11:56 UTC
+++ configure
@@ -624,14 +624,8 @@ ac_includes_default="\
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
-HAVE_XMLLINT_FALSE
-HAVE_XMLLINT_TRUE
XMLLINT
-HAVE_A2X_FALSE
-HAVE_A2X_TRUE
A2X
-HAVE_XSLTPROC_FALSE
-HAVE_XSLTPROC_TRUE
XSLTPROC
ADDITIONAL_OBJECTS
LIBOBJS
@@ -6069,173 +6063,9 @@ rm -f core conftest.err conftest.$ac_objext \
-# Check for xml tools
-# Extract the first word of "xsltproc", so it can be a program name with args.
-set dummy xsltproc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_XSLTPROC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $XSLTPROC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
+ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile data/templates/Makefile etc/Makefile m4macros/Makefile tests/Makefile tests/scripts/Makefile"
- test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
- ;;
-esac
-fi
-XSLTPROC=$ac_cv_path_XSLTPROC
-if test -n "$XSLTPROC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
-$as_echo "$XSLTPROC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$XSLTPROC" != "xno"; then
- HAVE_XSLTPROC_TRUE=
- HAVE_XSLTPROC_FALSE='#'
-else
- HAVE_XSLTPROC_TRUE='#'
- HAVE_XSLTPROC_FALSE=
-fi
-
-
-# Check for asciidoc
-# Extract the first word of "a2x", so it can be a program name with args.
-set dummy a2x; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_A2X+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $A2X in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_A2X="$A2X" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- test -z "$ac_cv_path_A2X" && ac_cv_path_A2X="no"
- ;;
-esac
-fi
-A2X=$ac_cv_path_A2X
-if test -n "$A2X"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
-$as_echo "$A2X" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- if test "x$A2X" != "xno"; then
- HAVE_A2X_TRUE=
- HAVE_A2X_FALSE='#'
-else
- HAVE_A2X_TRUE='#'
- HAVE_A2X_FALSE=
-fi
-
-
-# checking xmllint
-# Extract the first word of "xmllint", so it can be a program name with args.
-set dummy xmllint; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_XMLLINT+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $XMLLINT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="no"
- ;;
-esac
-fi
-XMLLINT=$ac_cv_path_XMLLINT
-if test -n "$XMLLINT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
-$as_echo "$XMLLINT" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-if test "x$XMLLINT" != "xno"; then
- $as_echo_n "testing xmllint... "
- echo "TEST" > conftest.txt
- if $A2X -f docbook conftest.txt 2>/dev/null; then
- $as_echo "ok"
- else
- $as_echo "failed"
- XMLLINT="no"
- fi
- rm -f conftest.txt conftest.xml
-fi
- if test "x$XMLLINT" != "xno"; then
- HAVE_XMLLINT_TRUE=
- HAVE_XMLLINT_FALSE='#'
-else
- HAVE_XMLLINT_TRUE='#'
- HAVE_XMLLINT_FALSE=
-fi
-
-
-ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile data/templates/Makefile etc/Makefile docs/Makefile docs/man5/Makefile docs/man5/tinyproxy.conf.txt docs/man8/Makefile docs/man8/tinyproxy.txt m4macros/Makefile tests/Makefile tests/scripts/Makefile"
-
-
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
@@ -6377,18 +6207,6 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__f
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
-if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
- as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${HAVE_A2X_TRUE}" && test -z "${HAVE_A2X_FALSE}"; then
- as_fn_error $? "conditional \"HAVE_A2X\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${HAVE_XMLLINT_TRUE}" && test -z "${HAVE_XMLLINT_FALSE}"; then
- as_fn_error $? "conditional \"HAVE_XMLLINT\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
@@ -7720,22 +7538,4 @@ fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
-fi
-
-
-# the manpages are shipped in the release tarball and we don't want them to
-# get regenerated if a2x is not available. the intermediate files from
-# AC_CONFIG_FILES are created with config.status, which is created at configure
-# runtime, so we need to touch them after config.status terminated to prevent
-# make from rebuild them.
-
-if test "x$A2X" = "xno"; then
- touch docs/man5/tinyproxy.conf.txt
- touch docs/man8/tinyproxy.txt
- if test -e docs/man5/tinyproxy.conf.5 ; then
- touch docs/man5/tinyproxy.conf.5
- fi
- if test -e docs/man8/tinyproxy.8 ; then
- touch docs/man8/tinyproxy.8
- fi
fi

View File

@ -1,63 +0,0 @@
--- configure.ac.orig 2018-09-01 02:06:59 UTC
+++ configure.ac
@@ -190,60 +190,15 @@ AC_SUBST(CPPFLAGS)
AC_SUBST(LIBS)
AC_SUBST(ADDITIONAL_OBJECTS)
-# Check for xml tools
-AC_PATH_PROG(XSLTPROC, xsltproc, no)
-AM_CONDITIONAL(HAVE_XSLTPROC, test "x$XSLTPROC" != "xno")
-
-# Check for asciidoc
-AC_PATH_PROG(A2X, a2x, no)
-AM_CONDITIONAL(HAVE_A2X, test "x$A2X" != "xno")
-
-# checking xmllint
-AC_PATH_PROG(XMLLINT, xmllint, no)
-if test "x$XMLLINT" != "xno"; then
- AS_ECHO_N("testing xmllint... ")
- echo "TEST" > conftest.txt
- if $A2X -f docbook conftest.txt 2>/dev/null; then
- AS_ECHO("ok")
- else
- AS_ECHO("failed")
- XMLLINT="no"
- fi
- rm -f conftest.txt conftest.xml
-fi
-AM_CONDITIONAL(HAVE_XMLLINT, test "x$XMLLINT" != "xno")
-
AC_CONFIG_FILES([
Makefile
src/Makefile
data/Makefile
data/templates/Makefile
etc/Makefile
-docs/Makefile
-docs/man5/Makefile
-docs/man5/tinyproxy.conf.txt
-docs/man8/Makefile
-docs/man8/tinyproxy.txt
m4macros/Makefile
tests/Makefile
tests/scripts/Makefile
])
AC_OUTPUT
-
-# the manpages are shipped in the release tarball and we don't want them to
-# get regenerated if a2x is not available. the intermediate files from
-# AC_CONFIG_FILES are created with config.status, which is created at configure
-# runtime, so we need to touch them after config.status terminated to prevent
-# make from rebuild them.
-
-if test "x$A2X" = "xno"; then
- touch docs/man5/tinyproxy.conf.txt
- touch docs/man8/tinyproxy.txt
- if test -e docs/man5/tinyproxy.conf.5 ; then
- touch docs/man5/tinyproxy.conf.5
- fi
- if test -e docs/man8/tinyproxy.8 ; then
- touch docs/man8/tinyproxy.8
- fi
-fi

View File

@ -0,0 +1,11 @@
--- etc/Makefile.in.orig 2018-09-01 02:12:08 UTC
+++ etc/Makefile.in
@@ -256,7 +256,7 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
+pkgsysconfdir = $(sysconfdir)
pkgsysconf_DATA = \
tinyproxy.conf

View File

@ -1,6 +1,6 @@
--- src/main.c.orig 2018-09-01 02:06:59 UTC
--- src/main.c.orig 2018-09-01 00:55:39 UTC
+++ src/main.c
@@ -395,6 +395,11 @@ main (int argc, char **argv)
@@ -395,17 +395,17 @@ main (int argc, char **argv)
}
}
@ -12,15 +12,14 @@
/* Switch to a different user if we're running as root */
if (geteuid () == 0)
change_user (argv[0]);
@@ -402,11 +407,6 @@ main (int argc, char **argv)
else
log_message (LOG_WARNING,
"Not running as root, so not changing UID/GID.");
-
- /* Create log file after we drop privileges */
- if (setup_logging ()) {
- exit (EX_SOFTWARE);
- }
-
if (child_pool_create () < 0) {
fprintf (stderr,
"%s: Could not create the pool of children.\n",