summaryrefslogtreecommitdiff
path: root/net-dialup/diald/files/diald-1.0-gentoo.patch
blob: 0e6f538ef76c7e80dec609dfe8600b98d6d75e42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diff -Nru diald-1.0.orig/Makefile.in diald-1.0/Makefile.in
--- diald-1.0.orig/Makefile.in	2008-04-13 21:09:37.000000000 +0300
+++ diald-1.0/Makefile.in	2008-04-13 21:11:17.000000000 +0300
@@ -21,9 +21,13 @@
 mandir          = @mandir@
 
 
+ROOTUID			= root
+ROOTGRP			= root
+BINGRP			= bin
+
 CC              = @CC@
 CFLAGS          = @CFLAGS@ @DEFS@ -I$(srcdir) \
-			-DDIALD_CONFIG_FILE=\"@sysconfdir@/diald.conf\" \
+			-DDIALD_CONFIG_FILE=\"@sysconfdir@/diald/diald.conf\" \
 			-DDIALD_DEFS_FILE=\"@libdir@/diald/diald.defs\" \
 			-DRUN_PREFIX=\"@localstatedir@/run\"
 INSTALL         = @INSTALL@
@@ -51,21 +55,19 @@
 	$(INSTALL) -d $(DESTDIR)$(bindir)
 	$(INSTALL) -m 0755 bin/dctrl $(DESTDIR)$(bindir)/dctrl
 	$(INSTALL) -d $(DESTDIR)$(sbindir)
-	$(INSTALL) -s -o root -g bin diald $(DESTDIR)$(sbindir)/diald
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) diald $(DESTDIR)$(sbindir)/diald
 	$(INSTALL) -d $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 \
 		$(DESTDIR)$(mandir)/man8
-	$(INSTALL) -o root -g bin -m 0644 doc/diald.man $(DESTDIR)$(mandir)/man8/diald.8
-	$(INSTALL) -o root -g bin -m 0644 doc/dctrl.man $(DESTDIR)$(mandir)/man1/dctrl.1
-	$(INSTALL) -o root -g bin -m 0644 doc/diald-examples.man $(DESTDIR)$(mandir)/man5/diald-examples.5
-	$(INSTALL) -o root -g bin -m 0644 doc/diald-control.man $(DESTDIR)$(mandir)/man5/diald-control.5
-	$(INSTALL) -o root -g bin -m 0644 doc/diald-monitor.man $(DESTDIR)$(mandir)/man5/diald-monitor.5
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) -m 0644 doc/diald.man $(DESTDIR)$(mandir)/man8/diald.8
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) -m 0644 doc/dctrl.man $(DESTDIR)$(mandir)/man1/dctrl.1
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) -m 0644 doc/diald-examples.man $(DESTDIR)$(mandir)/man5/diald-examples.5
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) -m 0644 doc/diald-control.man $(DESTDIR)$(mandir)/man5/diald-control.5
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) -m 0644 doc/diald-monitor.man $(DESTDIR)$(mandir)/man5/diald-monitor.5
 	-mkdir -p $(DESTDIR)$(libdir)
-	$(INSTALL) -o root -g bin lib/*.gif $(DESTDIR)$(libdir)
-	$(INSTALL) -o root -g bin -m 0644 config/diald.defs $(DESTDIR)$(libdir)/diald.defs
-	$(INSTALL) -o root -g bin -m 0644 config/standard.filter $(DESTDIR)$(libdir)/standard.filter
-	$(INSTALL) -d -m 0755 $(DESTDIR)/etc/pam.d
-	$(INSTALL) -o root -g root -m 0644 config/diald.pam $(DESTDIR)/$(sysconfdir)/pam.d/diald
-	$(INSTALL) -o root -g bin bin/connect $(DESTDIR)$(libdir)/connect
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) lib/*.gif $(DESTDIR)$(libdir)
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) -m 0644 config/diald.defs $(DESTDIR)$(libdir)/diald.defs
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) -m 0644 config/standard.filter $(DESTDIR)$(libdir)/standard.filter
+	$(INSTALL) -o $(ROOTUID) -g $(BINGRP) bin/connect $(DESTDIR)$(libdir)/connect
 
 clean:
 	rm -f *.o diald