~ubuntu-branches/ubuntu/lucid/rlpr/lucid

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Brian Mays
  • Date: 2002-03-20 11:21:15 UTC
  • Revision ID: james.westby@ubuntu.com-20020320112115-whl7m242ig71nu3h
Tags: upstream-2.02
ImportĀ upstreamĀ versionĀ 2.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
 
 
3
localedir       = $(datadir)/locale
 
4
LDFLAGS         = -L../lib
 
5
LIBS            = @INTLLIBS@ -lrlpr
 
6
INCLUDES        = -I../intl -I../lib -DLOCALEDIR=\"$(localedir)\"
 
7
 
 
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
 
13
 
 
14
EXTRA_DIST      = check-server.sh
 
15
 
 
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
 
18
 
 
19
#
 
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.
 
24
#
 
25
link_programs   = rlpr rlpq rlprm
 
26
 
 
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
 
37
 
 
38
install-proxy: install
 
39
        @echo "setting rlprd to be setuid root..."
 
40
        @chown root $(bindir)/rlprd
 
41
        @chmod 4755 $(bindir)/rlprd
 
42
 
 
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
 
51
 
 
52