1 diff -ru vzctl-4.0/bin/Makefile.am vzctl-4.0-patched/bin/Makefile.am
2 --- vzctl-4.0/bin/Makefile.am 2012-09-25 16:53:24.000000000 +0200
3 +++ vzctl-4.0-patched/bin/Makefile.am 2012-10-27 17:30:19.150478764 +0200
5 echo " ***************************************************"; \
8 +install-pld-from-spec:
11 + @if [ ! -e "$(DESTDIR)/sbin/ifup-local" -a \
12 + ! -L "$(DESTDIR)/sbin/ifup-local" ]; then \
13 + $(MKDIR_P) "$(DESTDIR)/sbin"; \
14 + $(LN_S) "..$(sbindir)/vzifup-post" \
15 + "$(DESTDIR)/sbin/ifup-local"; \
16 + elif readlink "$(DESTDIR)/sbin/ifup-local" | \
17 + fgrep -q vzifup-post; then \
21 + echo " ***************************************************"; \
22 + echo " WARNING: file $(DESTDIR)/sbin/ifup-local is present!"; \
23 + echo " You have to manually edit the above file so that "; \
24 + echo " it calls $(sbindir)/vzifup-post"; \
25 + echo " ***************************************************"; \
32 Tylko w vzctl-4.0-patched/bin: Makefile.am.orig
33 diff -ru vzctl-4.0/etc/dists/Makefile.am vzctl-4.0-patched/etc/dists/Makefile.am
34 --- vzctl-4.0/etc/dists/Makefile.am 2012-09-25 16:53:23.000000000 +0200
35 +++ vzctl-4.0-patched/etc/dists/Makefile.am 2012-10-27 17:30:19.150478764 +0200
38 $(INSTALL_DATA) $(srcdir)/funtoo.conf $(DESTDIR)$(distconfdir)/funtoo.conf
41 + $(INSTALL_DATA) $(srcdir)/pld.conf $(DESTDIR)$(distconfdir)/pld.conf
44 $(INSTALL_DATA) $(srcdir)/gentoo.conf \
45 $(DESTDIR)$(distconfdir)/gentoo.conf
54 Tylko w vzctl-4.0-patched/etc/dists: Makefile.am.orig
55 diff -ru vzctl-4.0/etc/init.d/initd-functions.in vzctl-4.0-patched/etc/init.d/initd-functions.in
56 --- vzctl-4.0/etc/init.d/initd-functions.in 2012-09-25 16:53:23.000000000 +0200
57 +++ vzctl-4.0-patched/etc/init.d/initd-functions.in 2012-10-27 17:30:19.151478423 +0200
60 # Source function library.
61 if [ -r /etc/init.d/functions ]; then
62 - . /etc/init.d/functions
63 if [ -r /etc/redhat-release ] || [ -r /etc/centos-release ]; then
64 + . /etc/init.d/functions
66 + elif [ -r /etc/pld-release ]; then
67 + . /etc/init.d/functions
70 elif [ -r /etc/rc.status ]; then
74 if [ "$DISTR" = "redhat" ]; then
76 + elif [ "$DISTR" = "pld" ]; then
86 if [ "$DISTR" = "redhat" ]; then
88 + elif [ "$DISTR" = "pld" ]; then
94 if [ "$DISTR" = "redhat" ]; then
97 + elif [ "$DISTR" = "pld" ]; then
100 echo -n "- Warning: $1 "
105 if [ $? -eq 0 ] ; then
107 + if [ "$DISTR" = "pld" ]; then
114 + if [ "$DISTR" = "pld" ]; then
124 - if [ "$DISTR" = "redhat" ]; then
125 + if [ "$DISTR" = "redhat" ] || [ "$DISTR" = "pld" ]; then
156 Tylko w vzctl-4.0-patched/etc/init.d: initd-functions.in.orig
157 diff -ru vzctl-4.0/etc/init.d/Makefile.am vzctl-4.0-patched/etc/init.d/Makefile.am
158 --- vzctl-4.0/etc/init.d/Makefile.am 2012-09-25 16:53:23.000000000 +0200
159 +++ vzctl-4.0-patched/etc/init.d/Makefile.am 2012-10-27 17:32:07.083190799 +0200
161 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
164 -INITSCRIPTS = vz-redhat vz-gentoo vzeventd-redhat vzeventd-gentoo
165 +INITSCRIPTS = vz-redhat vz-gentoo vzeventd-redhat vzeventd-gentoo vz-pld vzeventd-pld
166 script_DATA = initd-functions
168 EXTRA_DIST = $(INITSCRIPTS:%=%.in) $(script_DATA:%=%.in)
170 $(INSTALL_SCRIPT) vz-redhat $(DESTDIR)$(initddir)/vz
171 $(INSTALL_SCRIPT) vzeventd-redhat $(DESTDIR)$(initddir)/vzeventd
173 +install-pld: vz-pld vzeventd-pld
174 + $(mkinstalldirs) $(DESTDIR)$(initddir)
175 + $(INSTALL_SCRIPT) vz-pld $(DESTDIR)$(initddir)/vz
176 + $(INSTALL_SCRIPT) vzeventd-pld $(DESTDIR)$(initddir)/vzeventd
179 install-suse: install-redhat
181 install-debian: install-redhat
182 diff -ru vzctl-4.0/etc/Makefile.am vzctl-4.0-patched/etc/Makefile.am
183 --- vzctl-4.0/etc/Makefile.am 2012-09-25 16:53:23.000000000 +0200
184 +++ vzctl-4.0-patched/etc/Makefile.am 2012-10-27 17:30:19.151478423 +0200
187 $(mkinstalldirs) $(DESTDIR)$(namesdir)
189 +install-pld-from-spec: install-pld
191 + $(MAKE) $(AM_MAKEFLAGS) -C init.d $@
192 + $(MAKE) $(AM_MAKEFLAGS) -C network-scripts $@
194 install-redhat-from-spec: install-redhat
196 $(MAKE) $(AM_MAKEFLAGS) -C init.d $@
197 diff -ru vzctl-4.0/etc/network-scripts/Makefile.am vzctl-4.0-patched/etc/network-scripts/Makefile.am
198 --- vzctl-4.0/etc/network-scripts/Makefile.am 2012-09-25 16:53:23.000000000 +0200
199 +++ vzctl-4.0-patched/etc/network-scripts/Makefile.am 2012-10-27 17:30:19.152478519 +0200
201 for file in $(NETSDATA); do \
202 $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(netsdir)/$$file; \
204 +install-pld: $(NETSSCRIPTS)
205 + $(mkinstalldirs) $(DESTDIR)$(netsdir)
206 + for file in $(NETSSCRIPTS); do \
207 + $(INSTALL_SCRIPT) $$file $(DESTDIR)$(netsdir)/$$file; \
209 + for file in $(NETSDATA); do \
210 + $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(netsdir)/$$file; \
212 diff -ru vzctl-4.0/Makefile.am vzctl-4.0-patched/Makefile.am
213 --- vzctl-4.0/Makefile.am 2012-09-25 16:53:23.000000000 +0200
214 +++ vzctl-4.0-patched/Makefile.am 2012-10-27 17:30:19.152478519 +0200
216 $(mkinstalldirs) $(DESTDIR)$(modulesdir)
225 DISTRO_TARGETS_ALL = \
227 - install-redhat-from-spec
228 + install-redhat-from-spec \
229 + install-pld-from-spec
231 $(DISTRO_TARGETS_ALL):
232 $(MAKE) $(AM_MAKEFLAGS) -C etc $@