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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# $NetBSD: Makefile,v 1.12 1995/04/23 07:58:52 cgd Exp $
#
# Makefile for building a standalone send-pr.
#
srcdir= ${.CURDIR}
bindir= /usr/bin
datadir= /usr/share
#
# Begin CONFIGURATION SECTION
#
VERSION=3.2
# Where the GNATS database and master configuration stuff lives.
GNATS_ROOT =
# Email address to which people should submit bugs.
GNATS_ADDR = gnats-bugs@NetBSD.ORG
# The default release for this send-pr.
DEFAULT_RELEASE = <NetBSD-current source date>
# The default organization for this send-pr.
DEFAULT_ORGANIZATION =
# The default GNATS site for send-pr.
GNATS_SITE = netbsd
# The submitter-id for your site.
SUBMITTER = net
# Command line to use for mailer
MAIL_AGENT = /usr/sbin/sendmail -oi -t
# Command line to display the passwd database
PASSWD = cat /etc/passwd
# Echo(1) style
ECHON = bsd
#
# END OF CONFIGURATION SECTION
#
BINDIR= ${bindir}
LIBDIR= ${datadir}
NOPROG=
MAN= send-pr.1
CLEANFILES= send-pr send-pr.1 send-pr.el install-sid
all: send-pr send-pr.1 send-pr.el install-sid
send-pr: send-pr.sh Makefile
sed -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_ADDRx,$(GNATS_ADDR),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
-e 's,xSUBMITTERx,$(SUBMITTER),' \
-e 's,xECHONx,$(ECHON),' \
-e 's,xMAIL_AGENTx,$(MAIL_AGENT),' \
-e 's,xPASSWDx,$(PASSWD),' \
-e 's%xDEFAULT_ORGANIZATIONx%$(DEFAULT_ORGANIZATION)%' \
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
-e 's,xDATADIRx,$(datadir),' $(srcdir)/send-pr.sh > $@-t
mv -f $@-t $@
chmod 755 $@
install-sid: install-sid.sh Makefile
sed -e 's,xBINDIRx,$(bindir),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
mv -f $@-t $@
chmod 755 $@
send-pr.el: send-pr-el.in Makefile
sed -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
-e 's,xDATADIRx,$(datadir),' \
-e 's,xDEFAULT_SUBMITTERx,$(SUBMITTER),' \
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
$(srcdir)/send-pr-el.in \
> $@-t
mv -f $@-t $@
send-pr.1: send-pr.man Makefile
sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
mv -f $@-t $@
beforeinstall:
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} send-pr \
${DESTDIR}${BINDIR}
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} install-sid \
${DESTDIR}${BINDIR}
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/categories \
${DESTDIR}${LIBDIR}/gnats/${GNATS_SITE}
.include <bsd.prog.mk>
|