1993-11-19 22:22:26 +03:00
|
|
|
#
|
|
|
|
# Makefile for building a standalone send-pr.
|
|
|
|
#
|
|
|
|
|
1994-01-25 02:55:37 +03:00
|
|
|
srcdir= ${.CURDIR}
|
|
|
|
bindir= /usr/bin
|
|
|
|
datadir= /usr/share
|
1993-11-19 22:22:26 +03:00
|
|
|
|
1994-01-25 02:55:37 +03:00
|
|
|
#
|
|
|
|
# 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.
|
1994-10-17 06:03:32 +03:00
|
|
|
GNATS_ADDR = gnats-bugs@NetBSD.ORG
|
1994-01-25 02:55:37 +03:00
|
|
|
|
|
|
|
# The default release for this send-pr.
|
1994-10-24 22:10:41 +03:00
|
|
|
DEFAULT_RELEASE = <NetBSD-current source date>
|
1994-01-25 02:55:37 +03:00
|
|
|
|
|
|
|
# The default organization for this send-pr.
|
|
|
|
DEFAULT_ORGANIZATION =
|
|
|
|
|
|
|
|
# The default GNATS site for send-pr.
|
1994-10-17 20:22:26 +03:00
|
|
|
GNATS_SITE = netbsd
|
1994-01-25 02:55:37 +03:00
|
|
|
|
|
|
|
# The submitter-id for your site.
|
|
|
|
SUBMITTER = net
|
1993-11-19 22:22:26 +03:00
|
|
|
|
1994-01-25 02:55:37 +03:00
|
|
|
# Command line to use for mailer
|
|
|
|
MAIL_AGENT = /usr/sbin/sendmail -oi -t
|
|
|
|
|
|
|
|
# Command line to display the passwd database
|
1994-01-25 22:34:01 +03:00
|
|
|
PASSWD = cat /etc/passwd
|
1994-01-25 02:55:37 +03:00
|
|
|
|
|
|
|
# Echo(1) style
|
|
|
|
ECHON = bsd
|
|
|
|
|
|
|
|
#
|
|
|
|
# END OF CONFIGURATION SECTION
|
|
|
|
#
|
|
|
|
|
|
|
|
BINDIR= ${bindir}
|
|
|
|
LIBDIR= ${datadir}
|
1993-11-19 22:22:26 +03:00
|
|
|
NOPROG=
|
1994-12-22 12:31:26 +03:00
|
|
|
MAN= send-pr.1
|
1993-11-19 22:22:26 +03:00
|
|
|
|
1994-01-25 02:55:37 +03:00
|
|
|
CLEANFILES= send-pr send-pr.1 send-pr.el install-sid
|
1993-11-19 22:22:26 +03:00
|
|
|
|
1994-01-25 02:55:37 +03:00
|
|
|
all: send-pr send-pr.1 send-pr.el install-sid
|
1993-11-19 22:22:26 +03:00
|
|
|
|
1994-01-25 02:55:37 +03:00
|
|
|
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
|
1994-12-06 10:05:35 +03:00
|
|
|
mv -f $@-t $@
|
1994-01-25 02:55:37 +03:00
|
|
|
chmod 755 $@
|
1993-11-19 22:22:26 +03:00
|
|
|
|
1994-01-25 02:55:37 +03:00
|
|
|
install-sid: install-sid.sh Makefile
|
|
|
|
sed -e 's,xBINDIRx,$(bindir),g' \
|
|
|
|
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
|
1994-12-06 10:05:35 +03:00
|
|
|
mv -f $@-t $@
|
|
|
|
chmod 755 $@
|
1993-11-19 22:22:26 +03:00
|
|
|
|
1994-01-25 02:55:37 +03:00
|
|
|
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
|
1994-12-06 10:05:35 +03:00
|
|
|
mv -f $@-t $@
|
1994-01-25 02:55:37 +03:00
|
|
|
|
|
|
|
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
|
1994-12-06 10:05:35 +03:00
|
|
|
mv -f $@-t $@
|
1993-11-19 22:22:26 +03:00
|
|
|
|
|
|
|
beforeinstall:
|
1993-11-20 04:25:42 +03:00
|
|
|
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} send-pr \
|
1993-11-19 22:22:26 +03:00
|
|
|
${DESTDIR}${BINDIR}
|
1993-11-20 04:25:42 +03:00
|
|
|
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} install-sid \
|
1993-11-19 22:22:26 +03:00
|
|
|
${DESTDIR}${BINDIR}
|
1993-11-20 04:25:42 +03:00
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/categories \
|
1994-01-25 02:55:37 +03:00
|
|
|
${DESTDIR}${LIBDIR}/gnats/${GNATS_SITE}
|
1993-11-19 22:22:26 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|