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.

55 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../execwrap/execwrap.conf
  5. # Copyright (C) 2006 - 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. if [ $prefix_auto -eq 1 ]; then
  15. # if lighttpd is installed, we take it's prefix
  16. if pkginstalled lighttpd; then
  17. pkgprefix -t lighttpd
  18. prefix=$( pkgprefix lighttpd )
  19. set_confopt
  20. fi
  21. fi
  22. PARENT_UID=80
  23. TARGET_MIN_UID=500
  24. TARGET_MIN_GID=100
  25. TARGET_PATH_PREFIX=$bindir
  26. # no configure
  27. hook_add premake 5 'execwrap_config'
  28. execwrap_config() {
  29. sed -i -e "s,@@PARENT_UID@@,$PARENT_UID," \
  30. -e "s,@@TARGET_MIN_UID@@,$TARGET_MIN_UID," \
  31. -e "s,@@TARGET_MIN_GID@@,$TARGET_MIN_GID," \
  32. -e "s,@@TARGET_PATH_PREFIX@@,$TARGET_PATH_PREFIX," \
  33. execwrap_config.h
  34. cat execwrap_config.h
  35. }
  36. # no Makefile
  37. makeopt=
  38. hook_add inmake 5 '$CC -o execwrap execwrap.c && $STRIP execwrap'
  39. makeinstopt=
  40. hook_add postmake 5 'execwrap_install'
  41. execwrap_install() {
  42. # binary
  43. chown 0:80 execwrap
  44. chmod og-w,+rx,u+s execwrap
  45. cp -vaf execwrap $root$bindir/
  46. # README
  47. cp -vf README $root$docdir/
  48. }