]> git.pld-linux.org Git - packages/chkconfig.git/blob - chkconfig-optflags.patch
unbreak systemd-sysv-install symlink; rel 2
[packages/chkconfig.git] / chkconfig-optflags.patch
1 --- chkconfig-1.4/Makefile~     2015-03-26 15:14:53.000000000 +0200
2 +++ chkconfig-1.4/Makefile      2015-04-25 12:27:11.812618643 +0300
3 @@ -1,8 +1,8 @@
4  VERSION=$(shell awk '/Version:/ { print $$2 }' chkconfig.spec)
5  TAG = chkconfig-$(VERSION)
6  
7 -CFLAGS=-g -Wall $(RPM_OPT_FLAGS) -D_GNU_SOURCE
8 -LDFLAGS+=-g
9 +CFLAGS=$(OPTFLAGS) -Wall -D_GNU_SOURCE
10 +LDFLAGS+=$(OPTLDFLAGS)
11  MAN=chkconfig.8 ntsysv.8 alternatives.8
12  PROG=chkconfig
13  BINDIR = /sbin
14 @@ -24,12 +24,12 @@ subdirs:
15         done && test -z "$$fail"
16  
17  chkconfig: $(OBJS)
18 -       $(CC) $(LDFLAGS) -lselinux -lsepol -o chkconfig $(OBJS) -lpopt
19 +       $(CC) $(LDFLAGS) -o chkconfig $(OBJS) -lpopt -lselinux -lsepol
20  
21  alternatives: alternatives.o
22  
23  ntsysv: $(NTOBJS)
24 -       $(CC) $(LDFLAGS) -lselinux -lsepol -o ntsysv $(NTOBJS) -lnewt -lpopt $(LIBMHACK)
25 +       $(CC) $(LDFLAGS) -o ntsysv $(NTOBJS) -lnewt -lpopt -lselinux -lsepol $(LIBMHACK)
26  
27  chkconfig.o: chkconfig.c leveldb.h
28         $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c chkconfig.c
29 @@ -56,7 +56,7 @@ install:
30         [ -d $(DESTDIR)/$(MANDIR)/man5 ] || mkdir -p $(DESTDIR)/$(MANDIR)/man5
31         [ -d $(DESTDIR)/$(ALTDIR) ] || mkdir -p -m 755 $(DESTDIR)/$(ALTDIR)
32         [ -d $(DESTDIR)/$(ALTDATADIR) ] || mkdir -p -m 755 $(DESTDIR)/$(ALTDATADIR)
33 -       [ -d $(DESTDIR)/usr/lib/systemd ] || mkdir -p -m 755 $(DESTDIR)/usr/lib/systemd
34 +       [ -d $(DESTDIR)/$(SYSTEMDDIR) ] || mkdir -p -m 755 $(DESTDIR)/$(SYSTEMDDIR)
35  
36         install -m 755 $(PROG) $(DESTDIR)/$(BINDIR)/$(PROG)
37         ln -s ../../../$(BINDIR)/$(PROG) $(DESTDIR)/usr/lib/systemd/systemd-sysv-install
38 @@ -59,7 +59,7 @@ install:
39         [ -d $(DESTDIR)/$(SYSTEMDDIR) ] || mkdir -p -m 755 $(DESTDIR)/$(SYSTEMDDIR)
40  
41         install -m 755 $(PROG) $(DESTDIR)/$(BINDIR)/$(PROG)
42 -       ln -s ../../../$(BINDIR)/$(PROG) $(DESTDIR)/usr/lib/systemd/systemd-sysv-install
43 +       ln -s $(BINDIR)/$(PROG) $(DESTDIR)/$(SYSTEMDDIR)/systemd-sysv-install
44  
45         install -m 755 ntsysv $(DESTDIR)/$(SBINDIR)/ntsysv
46         install -m 755 alternatives $(DESTDIR)/$(SBINDIR)/alternatives
This page took 0.109291 seconds and 3 git commands to generate.