]> git.pld-linux.org Git - packages/efingerd.git/blob - efingerd-DESTDIR.patch
- unix -> Unix
[packages/efingerd.git] / efingerd-DESTDIR.patch
1 diff -ur efingerd-1.6/Makefile efingerd-1.6.new/Makefile
2 --- efingerd-1.6/Makefile       Mon Mar 12 14:34:49 2001
3 +++ efingerd-1.6.new/Makefile   Tue Oct  9 17:56:13 2001
4 @@ -1,15 +1,15 @@
5  
6 -BINDIR=/usr/local/sbin
7 -MANDIR=/usr/local/man/man8
8 +BINDIR=$(DESTDIR)/usr/sbin
9 +MANDIR=$(DESTDIR)/usr/share/man/man8
10  
11  CC = gcc 
12 -CFLAGS = -O2 -Wall -Wsurprising
13 +#CFLAGS = -O2 -Wall -Wsurprising
14  
15  #or, if you do not have libinent at all:
16  #CFLAGS = -O2 -Wall -DDONT_HAVE_LIBIDENT
17  
18  #uncomment the following line if you do have libident.so
19 -#LDFLAGS = -lident
20 +LDFLAGS = -lident
21  
22  
23  all: efingerd
24 @@ -19,8 +19,7 @@
25  #replace the line below with the line above if you have libident.so, or 
26  #do not have libident at all
27  #modify path to libident.a if necessary
28 -       $(CC) $(CFLAGS) $(LDFLAGS) efingerd.o child.o /usr/lib/libident.a -o efingerd
29 -       strip efingerd
30 +       $(CC) $(CFLAGS) $(LDFLAGS) efingerd.o child.o -o efingerd
31  
32  efingerd.o: efingerd.c
33         $(CC) $(CFLAGS) -c efingerd.c
34 @@ -32,9 +31,11 @@
35         rm -f *~ *.o efingerd
36  
37  install: efingerd 
38 +       mkdir -p $(BINDIR)
39         cp efingerd $(BINDIR)
40         mkdir -p $(DESTDIR)/etc/efingerd
41         cp examples-standard/* $(DESTDIR)/etc/efingerd
42  
43  install-doc: efingerd 
44 -       gzip -9 efingerd.8 -c >$(MANDIR)/efingerd.8.gz
45 +       mkdir -p $(MANDIR)
46 +       cp efingerd.8 $(MANDIR)/efingerd.8
47 Only in efingerd-1.6.new/: Makefile.orig
48 Only in efingerd-1.6.new/: Makefile.rej
This page took 0.065445 seconds and 3 git commands to generate.