OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
3.1 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../privoxy/makefile.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. install config files so that a user can use this as template
  17. - Sebastian Czech <t2_@arcor.de>
  18. --- privoxy-3.0.3-stable/GNUmakefile.in.orig 2004-01-31 02:15:33.000000000 +0100
  19. +++ privoxy-3.0.3-stable/GNUmakefile.in 2005-03-28 15:21:00.420358736 +0200
  20. @@ -1090,7 +1090,7 @@
  21. @test -n "$(STRIP)" &&\
  22. $(ECHO) Installing $(PROGRAM) stripped executable to $(SBIN_DEST) ||\
  23. $(ECHO) Installing $(PROGRAM) executable to $(SBIN_DEST)
  24. - $(INSTALL) $(INSTALL_P) $(STRIP) $(PROGRAM) $(SBIN_DEST)
  25. + $(INSTALL) $(INSTALL_P) $(PROGRAM) $(SBIN_DEST)
  26. @# Install the DOCS and man page. install-sh only does one file at a time.
  27. -@if [ $(check_doc) = 0 ]; then \
  28. @@ -1144,38 +1144,10 @@
  29. @# FIXME: group/user validation is overly convoluted.
  30. @# If superuser install ... we require a minimum of group ownership
  31. @# of those files the daemon writes to, to be non-root owned.
  32. - @if [ "`$(ID) |sed 's/(.*//' |sed 's/.*=//'`" = "0" ] ;then\
  33. - if [ x$(USER) = x ] || [ $(USER) = root ]; then \
  34. - if [ x$(GROUP) = x ] || [ $(GROUP) = root ]; then \
  35. - if [ "`$(ID) privoxy`" ] && \
  36. - $(GROUPS) privoxy | $(SED) 's/^.*://' |$(GREP) "\<privoxy\>" >/dev/null; then \
  37. - $(ECHO) "Warning: Setting group owner to privoxy";\
  38. - GROUP_T=privoxy ;\
  39. - else \
  40. - $(ECHO) "******************************************************************" ;\
  41. - $(ECHO) " WARNING! WARNING! installing config files as root!" ;\
  42. - $(ECHO) " It is strongly recommended to run $(PROGRAM) as a non-root user," ;\
  43. - $(ECHO) " and to install the config files as that user and/or group!" ;\
  44. - $(ECHO) " Please read INSTALL, and create a privoxy user and group!" ;\
  45. - $(ECHO) "*******************************************************************" ;\
  46. - exit 1 ;\
  47. - fi ;\
  48. - else \
  49. - GROUP_T=$(GROUP) ;\
  50. - fi ;\
  51. - INSTALL_CONF="$(INSTALL_R) -g $$GROUP_T " ;\
  52. - else \
  53. - $(ECHO) "Superuser install, installing config files as $(USER):$(GROUP_T)" ;\
  54. - INSTALL_CONF="$(INSTALL_R) -o $(USER) -g $(GROUP_T)" ;\
  55. - GROUP_T=$(GROUP_T) ;\
  56. - fi ;\
  57. - else \
  58. - if [ ! "`id $(USER)`" = "`id`" ] ;then \
  59. - $(ECHO) "** WARNING ** current install user different from configured user!!" ;\
  60. - $(ECHO) "Edit may fail." ;\
  61. - fi ;\
  62. - INSTALL_CONF="$(INSTALL_R)" ;\
  63. - fi ;\
  64. +
  65. + INSTALL_CONF="$(INSTALL_R) -o $(USER) -g $(GROUP_T)" ;\
  66. + GROUP_T=$(GROUP_T) ;\
  67. +
  68. $(ECHO) Installing configuration files to $(CONF_DEST);\
  69. for i in $(CONFIGS); do \
  70. if [ -s "$(CONF_DEST)/$$i" ] ; then \