Date: Mon, 25 Feb 2013 04:39:52 +0000 (UTC) From: Joe Marcus Clarke <marcus@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r312905 - head/net/netatalk3 Message-ID: <201302250439.r1P4dqsu023881@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <cropcirclesystems@yahoo.com> 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 <bsd.port.post.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302250439.r1P4dqsu023881>