|
|
4e3b3d |
diff -up at-3.1.13/Makefile.in.make at-3.1.13/Makefile.in
|
|
|
4e3b3d |
--- at-3.1.13/Makefile.in.make 2011-06-25 14:43:14.000000000 +0200
|
|
|
4e3b3d |
+++ at-3.1.13/Makefile.in 2011-07-29 08:06:28.317600053 +0200
|
|
|
4e3b3d |
@@ -65,13 +65,13 @@ LIST = Filelist Filelist.asc
|
|
|
4e3b3d |
all: at atd atrun
|
|
|
4e3b3d |
|
|
|
4e3b3d |
at: $(ATOBJECTS)
|
|
|
4e3b3d |
- $(CC) $(CFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB)
|
|
|
4e3b3d |
+ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-z,now -o at -pie $(ATOBJECTS) $(LIBS) $(LEXLIB) $(SELINUXLIB) $(PAMLIB)
|
|
|
4e3b3d |
rm -f $(CLONES)
|
|
|
4e3b3d |
$(LN_S) -f at atq
|
|
|
4e3b3d |
$(LN_S) -f at atrm
|
|
|
4e3b3d |
|
|
|
4e3b3d |
atd: $(RUNOBJECTS)
|
|
|
4e3b3d |
- $(CC) $(CFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB)
|
|
|
4e3b3d |
+ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-z,now -o atd -pie $(RUNOBJECTS) $(LIBS) $(SELINUXLIB) $(PAMLIB)
|
|
|
4e3b3d |
|
|
|
4e3b3d |
y.tab.c y.tab.h: parsetime.y
|
|
|
4e3b3d |
$(YACC) -d parsetime.y
|
|
|
4e3b3d |
@@ -83,38 +83,41 @@ atrun: atrun.in
|
|
|
4e3b3d |
configure
|
|
|
4e3b3d |
|
|
|
4e3b3d |
.c.o:
|
|
|
4e3b3d |
- $(CC) -c $(CFLAGS) $(DEFS) $*.c
|
|
|
4e3b3d |
+ $(CC) -c $(CFLAGS) -fPIE $(DEFS) $*.c
|
|
|
4e3b3d |
|
|
|
4e3b3d |
install: all
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(etcdir)
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(bindir)
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(sbindir)
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(docdir)
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(atdocdir)
|
|
|
4e3b3d |
- $(INSTALL) -g $(DAEMON_GROUPNAME) -o $(DAEMON_USERNAME) -m 755 -d $(IROOT)$(ATSPOOL_DIR) $(IROOT)$(ATJOB_DIR)
|
|
|
4e3b3d |
- chmod 1770 $(IROOT)$(ATSPOOL_DIR) $(IROOT)$(ATJOB_DIR)
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 -d $(IROOT)$(etcdir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 -d $(IROOT)$(bindir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 -d $(IROOT)$(sbindir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 -d $(IROOT)$(docdir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 -d $(IROOT)$(atdocdir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 -d $(IROOT)$(etcdir)/pam.d/
|
|
|
4e3b3d |
+ $(INSTALL) -g $(DAEMON_GROUPNAME) -o $(DAEMON_USERNAME) -m 755 -d $(IROOT)$(ATSPOOL_DIR)
|
|
|
4e3b3d |
+ chmod 700 $(IROOT)$(ATJOB_DIR) $(IROOT)$(ATSPOOL_DIR)
|
|
|
4e3b3d |
+ chown $(DAEMON_USERNAME):$(DAEMON_GROUPNAME) $(IROOT)$(ATJOB_DIR) $(IROOT)$(ATSPOOL_DIR)
|
|
|
4e3b3d |
touch $(IROOT)$(LFILE)
|
|
|
4e3b3d |
chmod 600 $(IROOT)$(LFILE)
|
|
|
4e3b3d |
chown $(DAEMON_USERNAME):$(DAEMON_GROUPNAME) $(IROOT)$(LFILE)
|
|
|
4e3b3d |
- test -f $(IROOT)$(etcdir)/at.allow || test -f $(IROOT)$(etcdir)/at.deny || $(INSTALL) -o root -g $(DAEMON_GROUPNAME) -m 640 at.deny $(IROOT)$(etcdir)/
|
|
|
4e3b3d |
- $(INSTALL) -g $(DAEMON_GROUPNAME) -o $(DAEMON_USERNAME) -m 6755 at $(IROOT)$(bindir)
|
|
|
4e3b3d |
+ test -f $(IROOT)$(etcdir)/at.allow || test -f $(IROOT)$(etcdir)/at.deny || $(INSTALL) -m 600 at.deny $(IROOT)$(etcdir)/
|
|
|
4e3b3d |
+ $(INSTALL) -o $(INSTALL_ROOT_USER) -g $(DAEMON_GROUPNAME) pam_atd $(IROOT)$(etcdir)/pam.d/atd
|
|
|
4e3b3d |
+ $(INSTALL) -m 4755 at $(IROOT)$(bindir)
|
|
|
4e3b3d |
$(LN_S) -f at $(IROOT)$(bindir)/atq
|
|
|
4e3b3d |
$(LN_S) -f at $(IROOT)$(bindir)/atrm
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 755 batch $(IROOT)$(bindir)
|
|
|
4e3b3d |
- $(INSTALL) -d -o root -g root -m 755 $(IROOT)$(man1dir)
|
|
|
4e3b3d |
- $(INSTALL) -d -o root -g root -m 755 $(IROOT)$(man5dir)
|
|
|
4e3b3d |
- $(INSTALL) -d -o root -g root -m 755 $(IROOT)$(man8dir)
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 755 atd $(IROOT)$(sbindir)
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 755 atrun $(IROOT)$(sbindir)
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 644 at.1 $(IROOT)$(man1dir)/
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 batch $(IROOT)$(bindir)
|
|
|
4e3b3d |
+ $(INSTALL) -d -m 755 $(IROOT)$(man1dir)
|
|
|
4e3b3d |
+ $(INSTALL) -d -m 755 $(IROOT)$(man5dir)
|
|
|
4e3b3d |
+ $(INSTALL) -d -m 755 $(IROOT)$(man8dir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 atd $(IROOT)$(sbindir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 755 atrun $(IROOT)$(sbindir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 644 at.1 $(IROOT)$(man1dir)/
|
|
|
4e3b3d |
cd $(IROOT)$(man1dir) && $(LN_S) -f at.1 atq.1 && $(LN_S) -f at.1 batch.1 && $(LN_S) -f at.1 atrm.1
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 644 atd.8 $(IROOT)$(man8dir)/
|
|
|
4e3b3d |
+ $(INSTALL) -m 644 atd.8 $(IROOT)$(man8dir)/
|
|
|
4e3b3d |
sed "s,\$${exec_prefix},$(exec_prefix),g" <atrun.8>tmpman
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 644 tmpman $(IROOT)$(man8dir)/atrun.8
|
|
|
4e3b3d |
+ $(INSTALL) -m 644 tmpman $(IROOT)$(man8dir)/atrun.8
|
|
|
4e3b3d |
rm -f tmpman
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 644 at.allow.5 $(IROOT)$(man5dir)/
|
|
|
4e3b3d |
+ $(INSTALL) -m 644 at.allow.5 $(IROOT)$(man5dir)/
|
|
|
4e3b3d |
cd $(IROOT)$(man5dir) && $(LN_S) -f at.allow.5 at.deny.5
|
|
|
4e3b3d |
- $(INSTALL) -g root -o root -m 644 $(DOCS) $(IROOT)$(atdocdir)
|
|
|
4e3b3d |
+ $(INSTALL) -m 644 $(DOCS) $(IROOT)$(atdocdir)
|
|
|
4e3b3d |
rm -f $(IROOT)$(mandir)/cat1/at.1* $(IROOT)$(mandir)/cat1/batch.1* \
|
|
|
4e3b3d |
$(IROOT)$(mandir)/cat1/atq.1*
|
|
|
4e3b3d |
rm -f $(IROOT)$(mandir)/cat1/atd.8*
|