diff options
author | nbm <nbm@FreeBSD.org> | 2000-04-28 05:25:36 +0800 |
---|---|---|
committer | nbm <nbm@FreeBSD.org> | 2000-04-28 05:25:36 +0800 |
commit | a5c60d2499c9944940656476bd1761936a1ce623 (patch) | |
tree | 2cfed848097781ae106d22114e2dda9a1ddc68d3 /sysutils/daemontools53/scripts | |
parent | 80747e975a688632bb35943cd4abac59def14495 (diff) | |
download | freebsd-ports-gnome-a5c60d2499c9944940656476bd1761936a1ce623.tar.gz freebsd-ports-gnome-a5c60d2499c9944940656476bd1761936a1ce623.tar.zst freebsd-ports-gnome-a5c60d2499c9944940656476bd1761936a1ce623.zip |
Snapshot of daemontools 0.53; without repo-copy, since the history is
safe in the daemontools directory. This is just a snapshot, this port
should not be updated to new versions. This is made necessary due to
non-backwards-compatible changes to daemontools, and large use of
this particular version.
Approved by: asami
Diffstat (limited to 'sysutils/daemontools53/scripts')
-rw-r--r-- | sysutils/daemontools53/scripts/configure | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/sysutils/daemontools53/scripts/configure b/sysutils/daemontools53/scripts/configure new file mode 100644 index 000000000000..7a1467fd9dc0 --- /dev/null +++ b/sysutils/daemontools53/scripts/configure @@ -0,0 +1,56 @@ +#!/bin/sh +# +# Set up daemontools for the *BSD environment... +# +# @(#) $FreeBSD: /tmp/pcvs/ports/sysutils/daemontools53/scripts/configure,v 1.1.1.1 2000-04-27 21:25:36 nbm Exp $ +# + +# Tune the options we're given. +echo ${PREFIX}/bin > ${WRKSRC}/conf-bin +echo ${PREFIX}/man > ${WRKSRC}/conf-man +echo cc ${CFLAGS} > ${WRKSRC}/conf-cc + +# Set up binaries correctly. +awk 'BEGIN { + FS=":" + OFS=":" +} +$1 == "c" { + if ($6 == "setuser") { + $2 = "0" + $3 = "0" + } else { + $2 = bu + $3 = bg + $4 = bm + } + print + next +} +{ + print +}' bu=`id -u ${BINOWN}` bg=`id -g ${BINGRP}` bm=${BINMODE} \ + ${WRKSRC}/BIN > ${WRKSRC}/BIN.tmp +mv ${WRKSRC}/BIN.tmp ${WRKSRC}/BIN + +# Set up man pages correctly. +awk 'BEGIN { + FS=":" + OFS=":" +} +# Dispose of preformatted man pages. +$5 ~ "cat" { + next +} +$1 == "c" { + $2 = bu + $3 = bg + $4 = mm + print + next +} +{ + print +}' bu=`id -u ${BINOWN}` bg=`id -g ${BINGRP}` mm=${MANMODE} \ + ${WRKSRC}/MAN > ${WRKSRC}/MAN.tmp +mv ${WRKSRC}/MAN.tmp ${WRKSRC}/MAN |