1
## Process this file with automake to produce Makefile.in
3
localedir = $(datadir)/locale
5
LIBS = @INTLLIBS@ -lrlpr
6
INCLUDES = -I../intl -I../lib -DLOCALEDIR=\"$(localedir)\"
8
bin_PROGRAMS = rlpr rlpq rlprm rlprd
9
rlpr_SOURCES = rlpr.c component.c msg.c rlprrc.c util.c client.c
10
rlpq_SOURCES = rlpq.c component.c msg.c rlprrc.c util.c client.c
11
rlprm_SOURCES = rlprm.c component.c msg.c rlprrc.c util.c client.c
12
rlprd_SOURCES = rlprd.c component.c msg.c util.c
14
EXTRA_DIST = check-server.sh
16
noinst_HEADERS = client.h component.h intl.h msg.h rfc1179.h rlpq.h rlpr.h \
17
rlprd.h rlprm.h rlprrc.h util.h
20
# Special directive for making links. This is kind of a hack;
21
# it appears that Automake doesn't mind if we add stuff that we
22
# want to end up in the real Makefile in here as long as we
23
# avoid its variable names.
25
link_programs = rlpr rlpq rlprm
27
install-setuid: install
28
@echo "setting rlpr, rlpq, rlprm and rlprd to be setuid root..."
29
@chown root $(bindir)/rlpr
30
@chmod 4755 $(bindir)/rlpr
31
@chown root $(bindir)/rlpq
32
@chmod 4755 $(bindir)/rlpq
33
@chown root $(bindir)/rlprm
34
@chmod 4755 $(bindir)/rlprm
35
@chown root $(bindir)/rlprd
36
@chmod 4755 $(bindir)/rlprd
38
install-proxy: install
39
@echo "setting rlprd to be setuid root..."
40
@chown root $(bindir)/rlprd
41
@chmod 4755 $(bindir)/rlprd
43
bsdlinks: $(link_programs)
44
@echo "installing bsd symlinks..."
45
-mv /usr/bin/lpr /usr/bin/lpr.bsd
46
ln -s $(bindir)/rlpr /usr/bin/lpr
47
-mv /usr/bin/lpq /usr/bin/lpq.bsd
48
ln -s $(bindir)/rlpq /usr/bin/lpq
49
-rm /usr/bin/lprm /usr/bin/lprm.bsd
50
ln -s $(bindir)/rlprm /usr/bin/lprm