From owner-svn-ports-all@FreeBSD.ORG Mon Feb 25 04:39:53 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A67B51ED; Mon, 25 Feb 2013 04:39:53 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 683BFCF4; Mon, 25 Feb 2013 04:39:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1P4drrQ023885; Mon, 25 Feb 2013 04:39:53 GMT (envelope-from marcus@svn.freebsd.org) Received: (from marcus@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1P4dqsu023881; Mon, 25 Feb 2013 04:39:52 GMT (envelope-from marcus@svn.freebsd.org) Message-Id: <201302250439.r1P4dqsu023881@svn.freebsd.org> From: Joe Marcus Clarke Date: Mon, 25 Feb 2013 04:39:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r312905 - head/net/netatalk3 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2013 04:39:53 -0000 Author: marcus Date: Mon Feb 25 04:39:52 2013 New Revision: 312905 URL: http://svnweb.freebsd.org/changeset/ports/312905 Log: Make sure the /var directories get created during package installation. Also, take care of the extmap.conf file as we do afp.conf. Submitted by: Chad Milios Added: head/net/netatalk3/pkg-install (contents, props changed) Modified: head/net/netatalk3/Makefile head/net/netatalk3/pkg-plist Modified: head/net/netatalk3/Makefile ============================================================================== --- head/net/netatalk3/Makefile Mon Feb 25 04:25:37 2013 (r312904) +++ head/net/netatalk3/Makefile Mon Feb 25 04:39:52 2013 (r312905) @@ -7,6 +7,7 @@ PORTNAME= netatalk PORTVERSION= 3.0.2 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= SF @@ -122,6 +123,8 @@ post-install: ${PREFIX}/bin/macusers [ -f ${PREFIX}/etc/afp.conf ] || \ ${INSTALL_DATA} -c ${PREFIX}/etc/afp.conf.dist ${PREFIX}/etc/afp.conf + [ -f ${PREFIX}/etc/extmap.conf ] || \ + ${INSTALL_DATA} -c ${PREFIX}/etc/extmap.conf.dist ${PREFIX}/etc/extmap.conf @${CAT} ${PKGMESSAGE} .include Added: head/net/netatalk3/pkg-install ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/netatalk3/pkg-install Mon Feb 25 04:39:52 2013 (r312905) @@ -0,0 +1,16 @@ +#!/bin/sh +# +PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin + +DBDIR=/var/netatalk + +case $2 in + POST-INSTALL) + umask 22 + mkdir -p $DBDIR/CNID + chown root:wheel $DBDIR $DBDIR/CNID + tee $DBDIR/README > $DBDIR/CNID/README <<-'EOF' + This directory contains modifiable Netatalk configuration files and the CNID databases. + EOF + ;; +esac Modified: head/net/netatalk3/pkg-plist ============================================================================== --- head/net/netatalk3/pkg-plist Mon Feb 25 04:25:37 2013 (r312904) +++ head/net/netatalk3/pkg-plist Mon Feb 25 04:39:52 2013 (r312905) @@ -10,8 +10,10 @@ bin/netatalk-config bin/uniconv @unexec if cmp -s %D/etc/afp.conf %D/etc/afp.conf.dist; then rm -f %D/etc/afp.conf; fi etc/afp.conf.dist -@exec [ ! -f %B/afp.conf ] && cp %B/%f %B/afp.conf +@exec [ -f %B/afp.conf ] || cp %B/%f %B/afp.conf +@unexec if cmp -s %D/etc/extmap.conf %D/etc/extmap.conf.dist; then rm -f %D/etc/extmap.conf; fi etc/extmap.conf.dist +@exec [ -f %B/extmap.conf ] || cp %B/%f %B/extmap.conf libexec/netatalk-uams/uams_clrtxt.so libexec/netatalk-uams/uams_dhx.so libexec/netatalk-uams/uams_dhx2.so