summaryrefslogtreecommitdiff
path: root/mail/exmh/files
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-26 11:46:54 +0000
committeragc <agc@pkgsrc.org>2001-10-26 11:46:54 +0000
commita15f55698b3cc4bace34e558bdd715ef0a93eaaf (patch)
treead5ea09ac5e179d1b275338c0e740688a1fa336f /mail/exmh/files
parent2772849eadf8855967db52f6f1a6540d61af9e12 (diff)
downloadpkgsrc-a15f55698b3cc4bace34e558bdd715ef0a93eaaf.tar.gz
Since the build and install scripts are executed directly by the package
Makefile, move them from scripts/ to files/ to make it obvious that the scripts invocations in bsd.pkg.mk are not being used.
Diffstat (limited to 'mail/exmh/files')
-rw-r--r--mail/exmh/files/build95
-rw-r--r--mail/exmh/files/install39
2 files changed, 134 insertions, 0 deletions
diff --git a/mail/exmh/files/build b/mail/exmh/files/build
new file mode 100644
index 00000000000..6d29e93f097
--- /dev/null
+++ b/mail/exmh/files/build
@@ -0,0 +1,95 @@
+#! /bin/sh
+#
+# $NetBSD: build,v 1.1 2001/10/26 11:46:55 agc Exp $
+# FreeBSD Id: build,v 1.5 1997/08/21 08:09:56 peter Exp
+#
+
+VERSION="`sed -ne 's/^set vers \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
+DATE="`sed -ne 's/^set date \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
+
+SEDFILE=sed.$$
+
+EXPECT="{}"
+EXPECTK="{}"
+FACES="{}"
+DOMAIN="{}"
+PGP="{}"
+PGP5="{}"
+PGP6="{}"
+GPG="{}"
+GLIMPSE="{}"
+PLAY="{}"
+
+if [ -f ${PREFIX}/bin/expect ]; then
+ EXPECT=${PREFIX}/bin/expect #executable
+fi
+if [ -f ${PREFIX}/bin/expectk ]; then
+ EXPECTK=${PREFIX}/bin/expectk #executable
+fi
+
+if [ -d ${PREFIX}/share/faces ]; then
+ FACES=${PREFIX}/share/faces #dir
+ shortname="`hostname -s`"
+ domain="`hostname | sed -e s/^${shortname}// -e s/^.// | tr A-Z a-z`"
+ if [ "${domain}" != "" ]; then
+ DOMAIN="{${domain}}"
+ fi
+fi
+
+if [ -f ${PREFIX}/bin/pgp ]; then
+ PGP=${PREFIX}/bin #bindir
+fi
+
+if [ -f ${PREFIX}/bin/pgp5 ]; then
+ PGP5=${PREFIX}/bin #bindir
+fi
+
+if [ -f ${PREFIX}/bin/pgp6 ]; then
+ PGP6=${PREFIX}/bin #bindir
+fi
+
+if [ -f ${PREFIX}/bin/gpg ]; then
+ GPG=${PREFIX}/bin #bindir
+fi
+
+if [ -f ${PREFIX}/bin/glimpse ]; then
+ GLIMPSE=${PREFIX}/bin #bindir
+fi
+
+if [ -f ${PREFIX}/bin/rplay ]; then
+ PLAY=${PREFIX}/bin/rplay #executable
+fi
+
+echo "s@^#!wish@#!${WISH}@" >${SEDFILE}
+if [ "${EXPECT}" != "{}" ]; then
+ echo "s@^#!expect@#!${EXPECT}@" >>${SEDFILE}
+fi
+echo "/^#CONFIGURATION/a\\" >>${SEDFILE}
+
+sed <${FILESDIR}/config \
+ -e "s+!!PREFIX!!+${PREFIX}+g" \
+ -e "s+!!WISH!!+${WISH}+g" \
+ -e "s+!!EXPECT!!+${EXPECT}+g" \
+ -e "s+!!EXPECTK!!+${EXPECTK}+g" \
+ -e "s+!!FACES!!+${FACES}+g" \
+ -e "s+!!DOMAIN!!+${DOMAIN}+g" \
+ -e "s+!!PGP!!+${PGP}+g" \
+ -e "s+!!PGP5!!+${PGP5}+g" \
+ -e "s+!!PGP6!!+${PGP6}+g" \
+ -e "s+!!GPG!!+${GPG}+g" \
+ -e "s+!!GLIMPSE!!+${GLIMPSE}+g" \
+ -e "s+!!PLAY!!+${PLAY}+g" \
+ -e "s+!!VERSION!!+${VERSION}+g" \
+ -e "s+!!DATE!!+${DATE}+g" \
+ | sed -e 's/$/\\/' >> ${SEDFILE}
+
+for i in exmh-async exmh-bg exmh ftp.expect
+do
+ echo "sed -f ${SEDFILE} < $i.MASTER > $i"
+ sed -f ${SEDFILE} < $i.MASTER > $i
+done
+
+rm -f ${SEDFILE}
+
+echo "cd lib ; echo 'auto_mkindex . *.tcl ; exit' | ${TCLSH}"
+cd lib ; echo 'auto_mkindex . *.tcl ; exit' | ${TCLSH}
diff --git a/mail/exmh/files/install b/mail/exmh/files/install
new file mode 100644
index 00000000000..a13b9530918
--- /dev/null
+++ b/mail/exmh/files/install
@@ -0,0 +1,39 @@
+#! /bin/sh
+#
+# $NetBSD: install,v 1.1 2001/10/26 11:46:55 agc Exp $
+# FreeBSD Id: install,v 1.2 1996/12/31 21:27:03 peter Exp
+#
+
+VERSION="`sed -ne 's/^set vers \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
+
+# Rename while installing..
+for i in exmh
+do
+ echo "install -c -o bin -g bin -m 444 $i.l ${PREFIX}/man/man1/$i.1"
+ install -c -o bin -g bin -m 444 $i.l ${PREFIX}/man/man1/$i.1
+done
+
+BINS="exmh-async exmh-bg exmh ftp.expect"
+
+echo "install -c -o bin -g bin -m 755 ${BINS} ${PREFIX}/bin"
+install -c -o bin -g bin -m 755 ${BINS} ${PREFIX}/bin
+
+if [ ! -d ${PREFIX}/lib/exmh-${VERSION} ]
+then
+ echo "mkdir ${PREFIX}/lib/exmh-${VERSION}"
+ mkdir ${PREFIX}/lib/exmh-${VERSION}
+fi
+
+LIBFILES='lib/PgpDecryptExpect lib/*.tcl lib/*.bitmap lib/*.ppm lib/help.* lib/tclIndex lib/app-defaults lib/app-defaults-* lib/*.mask lib/*.exp lib/mime.types lib/*.au lib/*.gif'
+
+echo "install -c -o bin -g bin -m 444 ${LIBFILES} ${PREFIX}/lib/exmh-${VERSION}"
+install -c -o bin -g bin -m 444 ${LIBFILES} ${PREFIX}/lib/exmh-${VERSION}
+
+if [ ! -d ${PREFIX}/lib/exmh-${VERSION}/html ]
+then
+ echo "mkdir ${PREFIX}/lib/exmh-${VERSION}/html"
+ mkdir ${PREFIX}/lib/exmh-${VERSION}/html
+fi
+
+echo "install -c -o bin -g bin -m 444 lib/html/* ${PREFIX}/lib/exmh-${VERSION}/html"
+install -c -o bin -g bin -m 444 lib/html/* ${PREFIX}/lib/exmh-${VERSION}/html