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.

73 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../bcron/bcron-0.11-combined.patch
  5. # Copyright (C) 2015 The OpenSDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. 1. Make Makefile a bit more autostuff friendly.
  17. 2. Do not use python for generating 'conf_sendmail.c' from 'conf-sendmail'
  18. --- ./Makefile.orig 2015-08-12 19:07:28.000000000 +0300
  19. +++ ./Makefile 2015-10-06 19:24:21.518109604 +0300
  20. @@ -4,6 +4,14 @@
  21. SHELL=/bin/sh
  22. +DESTDIR=
  23. +PREFIX=/usr/local
  24. +BINDIR=$(PREFIX)/bin
  25. +MANDIR=$(PREFIX)/share/man
  26. +MAN1DIR=$(MANDIR)/man1
  27. +MAN5DIR=$(MANDIR)/man5
  28. +MAN8DIR=$(MANDIR)/man8
  29. +
  30. DEFAULT: all
  31. all: libraries programs docs
  32. @@ -89,7 +97,9 @@
  33. chmod 755 compile
  34. conf_sendmail.c: conf-sendmail
  35. - python -c 'import shlex; line=shlex.split(open("conf-sendmail").readline().strip()); print("const char* sendmail[] = { "+",".join(["\"%s\""%a for a in line])+",NULL };")' >conf_sendmail.c
  36. + ( confsendmail=`head -n 1 conf-sendmail | tr -s ' '`; \
  37. + printf "const char* sendmail[] = { `for x in $${confsendmail}; do printf '\"%s\",' $${x}; done`NULL };\n" \
  38. + ) >conf_sendmail.c
  39. connection.o: compile connection.c bcron.h
  40. ./compile connection.c
  41. @@ -106,8 +116,21 @@
  42. docs: bcron.info bcron.html crontab.5.html bcrontab.1.html bcron-spool.8.html bcron-sched.8.html bcron-exec.8.html bcron-start.8.html bcron-update.8.html
  43. install: INSTHIER conf-bin conf-man
  44. - bg-installer -v <INSTHIER
  45. - bg-installer -c <INSTHIER
  46. + install -m 0755 bcron-exec $(DESTDIR)$(BINDIR)/
  47. + install -m 0755 bcron-sched $(DESTDIR)$(BINDIR)/
  48. + install -m 0755 bcron-spool $(DESTDIR)$(BINDIR)/
  49. + install -m 0755 bcron-start $(DESTDIR)$(BINDIR)/
  50. + install -m 0755 bcron-update $(DESTDIR)$(BINDIR)/
  51. + install -m 0755 bcrontab $(DESTDIR)$(BINDIR)/
  52. + ln -snf bcrontab $(DESTDIR)$(BINDIR)/crontab
  53. + install -m 0644 bcrontab.1 $(DESTDIR)$(MAN1DIR)/
  54. + ln -snf bcrontab.1 $(DESTDIR)$(MAN1DIR)/crontab.1
  55. + install -m 0644 crontab.5 $(DESTDIR)$(MAN5DIR)/
  56. + install -m 0644 bcron-exec.8 $(DESTDIR)$(MAN8DIR)/
  57. + install -m 0644 bcron-sched.8 $(DESTDIR)$(MAN8DIR)/
  58. + install -m 0644 bcron-spool.8 $(DESTDIR)$(MAN8DIR)/
  59. + install -m 0644 bcron-start.8 $(DESTDIR)$(MAN8DIR)/
  60. + install -m 0644 bcron-update.8 $(DESTDIR)$(MAN8DIR)/
  61. job.o: compile job.c bcron.h
  62. ./compile job.c