blob: 30ceb079ee3c51fa1b1872be9cee9648336bea33 (
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
|
- install into Gentoo/FHS doc dir
- respect Gentoo LDFLAGS
- at is setuid, link with bind now
- dont allow install to strip binaries
--- Makefile.in
+++ Makefile.in
@@ -15,6 +15,9 @@
man5dir = $(mandir)/man5
man8dir = $(mandir)/man8
-docdir = $(prefix)/doc
-atdocdir = $(docdir)/at
+ifndef PF
+PF = at-$(VERSION)
+endif
+docdir = $(prefix)/share/doc
+atdocdir = $(docdir)/$(PF)
etcdir = @ETCDIR@
@@ -38,5 +41,5 @@
-DDAEMON_GROUPNAME=\"$(DAEMON_GROUPNAME)\" \
-DLFILE=\"$(LFILE)\" -Wall
-LIBS = @LIBS@
+LIBS = @LIBS@ @LDFLAGS@
LIBOBJS = @LIBOBJS@
INSTALL = @INSTALL@
@@ -67,5 +70,5 @@
at: $(ATOBJECTS)
- $(CC) $(CFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB)
+ $(CC) $(CFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB) -Wl,-z,now
rm -f $(CLONES)
$(LN_S) -f at atq
@@ -101,5 +104,5 @@
chown $(DAEMON_USERNAME):$(DAEMON_GROUPNAME) $(IROOT)$(LFILE)
test -f $(IROOT)$(etcdir)/at.allow || test -f $(IROOT)$(etcdir)/at.deny || $(INSTALL) -o root -m 600 at.deny $(IROOT)$(etcdir)/
- $(INSTALL) -g root -o root -m 4755 -s at $(IROOT)$(bindir)
+ $(INSTALL) -g root -o root -m 4711 at $(IROOT)$(bindir)
$(LN_S) -f at $(IROOT)$(bindir)/atq
$(LN_S) -f at $(IROOT)$(bindir)/atrm
@@ -108,5 +111,5 @@
$(INSTALL) -d -o root -g root -m 755 $(IROOT)$(man5dir)
$(INSTALL) -d -o root -g root -m 755 $(IROOT)$(man8dir)
- $(INSTALL) -g root -o root -m 755 -s atd $(IROOT)$(sbindir)
+ $(INSTALL) -g root -o root -m 755 atd $(IROOT)$(sbindir)
$(INSTALL) -g root -o root -m 755 atrun $(IROOT)$(sbindir)
$(INSTALL) -g root -o root -m 644 at.1 $(IROOT)$(man1dir)/
|