# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../bcron/bcron-0.11-combined.patch # Copyright (C) 2015 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- SDE-COPYRIGHT-NOTE-END --- 1. Make Makefile a bit more autostuff friendly. 2. Do not use python for generating 'conf_sendmail.c' from 'conf-sendmail' --- ./Makefile.orig 2015-08-12 19:07:28.000000000 +0300 +++ ./Makefile 2015-10-06 19:24:21.518109604 +0300 @@ -4,6 +4,14 @@ SHELL=/bin/sh +DESTDIR= +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man +MAN1DIR=$(MANDIR)/man1 +MAN5DIR=$(MANDIR)/man5 +MAN8DIR=$(MANDIR)/man8 + DEFAULT: all all: libraries programs docs @@ -89,7 +97,9 @@ chmod 755 compile conf_sendmail.c: conf-sendmail - 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 + ( confsendmail=`head -n 1 conf-sendmail | tr -s ' '`; \ + printf "const char* sendmail[] = { `for x in $${confsendmail}; do printf '\"%s\",' $${x}; done`NULL };\n" \ + ) >conf_sendmail.c connection.o: compile connection.c bcron.h ./compile connection.c @@ -106,8 +116,21 @@ 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 install: INSTHIER conf-bin conf-man - bg-installer -v