- 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)/