Date: 24 Aug 2005 00:47:01 +0900 From: FURUTATE@fenrir.future-ta.jp, Mikihiko <futurebsd@infoseek.to> To: FreeBSD-gnats-submit@FreeBSD.org Cc: future@future-ta.com Subject: ports/85250: New port: mail/qmail-vida Message-ID: <20050823154701.1206.qmail@fenrir.future-ta.jp> Resent-Message-ID: <200508231550.j7NFoNnG055903@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 85250 >Category: ports >Synopsis: New port: mail/qmail-vida >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 23 15:50:23 GMT 2005 >Closed-Date: >Last-Modified: >Originator: FURUTATE,Mikihiko >Release: FreeBSD 5.4-RELEASE-p6 i386 >Organization: >Environment: System: FreeBSD fenrir.future-ta.jp 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Sat Aug 13 15:34:33 JST 2005 root@fenrir.future-ta.jp:/usr/obj/usr/src/sys/FENRIR i386 >Description: qmail-vida : qmail Virtual Domain and Authentication >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/mail/qmail-vida/ # /usr/ports/mail/qmail-vida/Makefile # /usr/ports/mail/qmail-vida/distinfo # /usr/ports/mail/qmail-vida/files # /usr/ports/mail/qmail-vida/files/patch-Makefile # /usr/ports/mail/qmail-vida/files/pre-build.in # /usr/ports/mail/qmail-vida/pkg-descr # echo c - /usr/ports/mail/qmail-vida/ mkdir -p /usr/ports/mail/qmail-vida/ > /dev/null 2>&1 echo x - /usr/ports/mail/qmail-vida/Makefile sed 's/^X//' >/usr/ports/mail/qmail-vida/Makefile << 'END-of-/usr/ports/mail/qmail-vida/Makefile' X# New ports collection makefile for: qmail-vida X# Date created: 22 Aug 2005 X# Whom: FURUTATE,Mikihiko<futurebsd@infoseek.to> X# X# $FreeBSD$ X# X XPORTNAME= qmail-vida XPORTVERSION=0.53 XCATEGORIES= mail XMASTER_SITES=${MASTER_SITE_SOURCEFORGE_JP} XMASTER_SITE_SUBDIR=2100 X XMAINTAINER=future@future-ta.com XCOMMENT= SMTP_AUTH/APOP support for qmail X XDISTNAME=${PORTNAME}-${PORTVERSION} XDIST_FILES=${DISTNAME}.tar.gz XDIST_SUBDIR=qmail X XWRKSRC=${WRKDIR}/${PORTNAME}-${PORTVERSION} X XQMAIL_PORTS_DIR=${PORTSDIR}/mail/qmail XCHKPWD_PORTS_DIR=${PORTSDIR}/security/checkpassword XTCPSRV_PORTS_DIR=${PORTSDIR}/sysutils/ucspi-tcp X XPATCH_DEPENDS=\ X ${NOEXISTENT}:${QMAIL_PORTS_DIR}:clean ${NOEXISTENT}:${CHKPWD_PORTS_DIR}:clean ${NOEXISTENT}:${TCPSRV_PORTS_DIR}:clean\ X ${NOEXISTENT}:${QMAIL_PORTS_DIR}:extract ${NOEXISTENT}:${CHKPWD_PORTS_DIR}:extract ${NOEXISTENT}:${TCPSRV_PORTS_DIR}:extract X XRUN_DEPENDS=\ X ${NOEXISTENT}:${QMAIL_PORTS_DIR}:deinstall ${NOEXISTENT}:${CHKPWD_PORTS_DIR}:deinstall ${NOEXISTENT}:${TCPSRV_PORTS_DIR}:deinstall\ X ${NOEXISTENT}:${QMAIL_PORTS_DIR}:install ${NOEXISTENT}:${CHKPWD_PORTS_DIR}:install ${NOEXISTENT}:${TCPSRV_PORTS_DIR}:install X XMAKEFLGS= QMAIL_PORTS_DIR=${QMAIL_PORTS_DIR} CHKPWD_PORTS_DIR=${CHKPWD_PORTS_DIR} TCPSRV_PORTS_DIR=${TCPSRV_PORTS_DIR} X Xpre-build: X cd ${WRKDIR}/${PORTNAME}-${PORTVERSION} && make ${MAKEFLGS} patch copy X ${FILESDIR}/pre-build.in X X.include <bsd.port.mk> END-of-/usr/ports/mail/qmail-vida/Makefile echo x - /usr/ports/mail/qmail-vida/distinfo sed 's/^X//' >/usr/ports/mail/qmail-vida/distinfo << 'END-of-/usr/ports/mail/qmail-vida/distinfo' XMD5 (qmail/qmail-vida-0.53.tar.gz) = b86912b63e2538351f021db7624ba199 XSIZE (qmail/qmail-vida-0.53.tar.gz) = 73484 END-of-/usr/ports/mail/qmail-vida/distinfo echo c - /usr/ports/mail/qmail-vida/files mkdir -p /usr/ports/mail/qmail-vida/files > /dev/null 2>&1 echo x - /usr/ports/mail/qmail-vida/files/patch-Makefile sed 's/^X//' >/usr/ports/mail/qmail-vida/files/patch-Makefile << 'END-of-/usr/ports/mail/qmail-vida/files/patch-Makefile' X--- Makefile.orig Fri Jan 17 02:16:32 2003 X+++ Makefile Mon Aug 22 17:23:05 2005 X@@ -1,6 +1,6 @@ X-QMAILSRC = ../qmail-1.03 X-CHECKPASSWORDSRC= ../checkpassword-0.90 X-UCSPITCPSRC = ../ucspi-tcp-0.88 X+QMAILSRC = ${QMAIL_PORTS_DIR}/work/qmail-1.03 X+CHECKPASSWORDSRC= ${CHKPWD_PORTS_DIR}/work/checkpassword-0.90 X+UCSPITCPSRC = ${TCPSRV_PORTS_DIR}/work/ucspi-tcp-0.88 X PREFIX = /var/qmail X CAT = /bin/cat X RM = /bin/rm X@@ -8,23 +8,25 @@ X SHELL = /bin/sh X PATCH = /usr/bin/patch X X-all: copy X+all: X X+install: install-doc X+ cd src/vida && make setup check X X # copy djblib and source X copy: copy-qmail copy-checkpassword copy-vida X X copy-qmail: X here=`pwd` && cd src/qmail && \ X- ${CP} `${CAT} $${here}/src/qmail/FILES` $${here}/${QMAILSRC}/ X+ ${CP} `${CAT} $${here}/src/qmail/FILES` ${QMAILSRC}/ X X copy-checkpassword: X here=`pwd` && cd src/checkpassword && \ X- ${CP} `${CAT} $${here}/src/checkpassword/FILES` $${here}/${CHECKPASSWORDSRC}/ X+ ${CP} `${CAT} $${here}/src/checkpassword/FILES` ${CHECKPASSWORDSRC}/ X here=`pwd` && cd ${QMAILSRC} && \ X- ${CP} `${CAT} $${here}/djblib/checkpassword/QMAIL` $${here}/${CHECKPASSWORDSRC}/ X+ ${CP} `${CAT} $${here}/djblib/checkpassword/QMAIL` ${CHECKPASSWORDSRC}/ X here=`pwd` && cd ${UCSPITCPSRC} && \ X- ${CP} `${CAT} $${here}/djblib/checkpassword/UCSPITCP` $${here}/${CHECKPASSWORDSRC}/ X+ ${CP} `${CAT} $${here}/djblib/checkpassword/UCSPITCP` ${CHECKPASSWORDSRC}/ X X copy-vida: X here=`pwd` && cd ${QMAILSRC} && \ END-of-/usr/ports/mail/qmail-vida/files/patch-Makefile echo x - /usr/ports/mail/qmail-vida/files/pre-build.in sed 's/^X//' >/usr/ports/mail/qmail-vida/files/pre-build.in << 'END-of-/usr/ports/mail/qmail-vida/files/pre-build.in' X#!/bin/csh -f X Xset groups = (vida nofiles); Xset gids = (83 84); Xset users = (authdb qmailu); Xset users_g = (vida vida); Xset uids = (89 88); X X Xset k = 1; Xforeach group ($groups) X pw groupshow $group >& /dev/null; X if ($status) then X pw groupadd $group -g $gids[$k]; X if ($status) then X echo "Failed to add group '$group' as gid '$gids[$k]'"; X exit 1; X endif X endif X set chkgid = (`pw groupshow $group | sed -e "s,:, ,g"`); X if ($chkgid[3] != $gids[$k]) then X echo "Group '$group' should have gid '$gids[$k]'"; X exit 1; X endif X @ k++; Xend X Xset k = 1; Xforeach user ($users) X pw usershow $user >& /dev/null; X X if ($status) then X if ($user == "alias") then X set home = /var/qmail/alias; X else X set home = /var/qmail; X endif X X pw useradd $user -g $users_g[$k] -d $home -s /nonexistent -u $uids[$k]; X X if ($status) then X echo "Failed to add user '$user' as uid '$uids[$k]'"; X exit 1; X endif X endif X X set chkuid = (`pw usershow $user | sed -e "s,:, ,g"`); X if ($chkuid[3] != $uids[$k]) then X echo "User '$user' should have uid '$uids[$k]'"; X exit 1; X endif X X @ k++; Xend X END-of-/usr/ports/mail/qmail-vida/files/pre-build.in echo x - /usr/ports/mail/qmail-vida/pkg-descr sed 's/^X//' >/usr/ports/mail/qmail-vida/pkg-descr << 'END-of-/usr/ports/mail/qmail-vida/pkg-descr' Xqmail-vida : qmail Virtual Domain and Authentication END-of-/usr/ports/mail/qmail-vida/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050823154701.1206.qmail>