From owner-p4-projects@FreeBSD.ORG Fri Jun 13 01:22:46 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 96B1937B404; Fri, 13 Jun 2003 01:22:45 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A58037B401 for ; Fri, 13 Jun 2003 01:22:45 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B866443F93 for ; Fri, 13 Jun 2003 01:22:44 -0700 (PDT) (envelope-from des@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5D8Mi0U051668 for ; Fri, 13 Jun 2003 01:22:44 -0700 (PDT) (envelope-from des@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5D8MiSc051659 for perforce@freebsd.org; Fri, 13 Jun 2003 01:22:44 -0700 (PDT) Date: Fri, 13 Jun 2003 01:22:44 -0700 (PDT) Message-Id: <200306130822.h5D8MiSc051659@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to des@freebsd.org using -f From: Dag-Erling Smorgrav To: Perforce Change Reviews Subject: PERFORCE change 33081 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 08:22:46 -0000 http://perforce.freebsd.org/chv.cgi?CH=33081 Change 33081 by des@des.at.des.thinksec.com on 2003/06/13 01:22:25 Streamline the distribution process. Affected files ... .. //depot/projects/openpam/MANIFEST#18 edit .. //depot/projects/openpam/dist.sh#9 edit Differences ... ==== //depot/projects/openpam/MANIFEST#18 (text+ko) ==== @@ -1,5 +1,5 @@ # -# $P4: //depot/projects/openpam/MANIFEST#17 $ +# $P4: //depot/projects/openpam/MANIFEST#18 $ # CREDITS HISTORY @@ -12,19 +12,29 @@ RELNOTES aclocal.m4 autogen.sh -bin/Makefile.am -bin/Makefile.in -bin/su/Makefile.am -bin/su/Makefile.in -bin/su/su.c config.guess config.h.in config.sub configure configure.in depcomp +install-sh +ltconfig +ltmain.sh +missing +mkinstalldirs +stamp-h.in +bin/ +bin/Makefile.am +bin/Makefile.in +bin/su/ +bin/su/Makefile.am +bin/su/Makefile.in +bin/su/su.c +doc/ doc/Makefile.am doc/Makefile.in +doc/man/ doc/man/Makefile.am doc/man/Makefile.in doc/man/openpam.3 @@ -72,8 +82,10 @@ doc/man/pam_verror.3 doc/man/pam_vinfo.3 doc/man/pam_vprompt.3 +include/ include/Makefile.am include/Makefile.in +include/security/ include/security/Makefile.am include/security/Makefile.in include/security/openpam.h @@ -82,7 +94,7 @@ include/security/pam_constants.h include/security/pam_modules.h include/security/pam_types.h -install-sh +lib/ lib/Makefile.am lib/Makefile.in lib/openpam_borrow_cred.c @@ -142,20 +154,20 @@ lib/pam_verror.c lib/pam_vinfo.c lib/pam_vprompt.c -ltconfig -ltmain.sh +misc/ misc/gendoc.pl -missing -mkinstalldirs +modules/ modules/Makefile.am modules/Makefile.in +modules/pam_deny/ modules/pam_deny/Makefile.am modules/pam_deny/Makefile.in modules/pam_deny/pam_deny.c +modules/pam_permit/ modules/pam_permit/Makefile.am modules/pam_permit/Makefile.in modules/pam_permit/pam_permit.c +modules/pam_unix/ modules/pam_unix/Makefile.am modules/pam_unix/Makefile.in modules/pam_unix/pam_unix.c -stamp-h.in ==== //depot/projects/openpam/dist.sh#9 (text+ko) ==== @@ -1,6 +1,6 @@ #!/bin/sh # -# $P4: //depot/projects/openpam/dist.sh#8 $ +# $P4: //depot/projects/openpam/dist.sh#9 $ # set -e @@ -9,27 +9,27 @@ distname="openpam-${release}" tarball="${distname}.tar.gz" -gmake clean || true -gmake distclean || true -sh -e autogen.sh -sh configure --with-pam-su --with-pam-unix -gmake install -d -m 0755 "${distname}" -grep -v '^#' MANIFEST | while read file; do - install -d -m 0755 "${distname}/$(dirname ${file})" || exit 1 +grep '^[a-z].*/$' MANIFEST | while read dir; do + echo "Creating ${dir}" + install -d -m 0755 "${distname}/${dir}" || exit 1 +done +grep '^[a-z].*[^/]$' MANIFEST | while read file; do + echo "Adding ${file}" install -c -m 0644 "${file}" "${distname}/${file}" || exit 1 done -for f in autogen.sh configure depcomp install-sh ltconfig ltmain.sh ; do - chmod a+x "${distname}/${f}" +for file in autogen.sh configure depcomp install-sh ltconfig ltmain.sh ; do + echo "Adjusting permissions for ${file}" + chmod a+x "${distname}/${file}" done -for f in configure configure.in include/security/openpam_version.h ; do - perl -p -i -e "s/YYYYMMDD/${release}/g" "${distname}/${f}" +(cd "${distname}" && grep -rl YYYYMMDD *) | while read file ; do + echo "Datestamping ${file}" + perl -p -i -e "s/YYYYMMDD/${release}/g" "${distname}/${file}" done -find "${distname}" | xargs touch -t "${release}0000" +find "${distname}" | sort -r | xargs touch -t "${release}0000" tar zcf "${tarball}" "${distname}" +dd if=/dev/zero of="${tarball}" conv=notrunc bs=4 oseek=1 count=1 rm -rf "${distname}" -gmake clean || true -gmake distclean || true echo md5 "${tarball}"