Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 125DD7A264 for ; Mon, 7 Nov 2016 00:42:34 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id A586E855CC; Mon, 7 Nov 2016 00:42:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 36C79855C7 for ; Mon, 7 Nov 2016 00:42:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id a25BBo-LuX2T for ; Mon, 7 Nov 2016 00:42:32 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 91B2B85576 for ; Mon, 7 Nov 2016 00:42:32 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8F780FBA6; Mon, 7 Nov 2016 00:42:32 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1478479352256160" MIME-Version: 1.0 Date: Sun, 6 Nov 2016 19:42:32 -0500 From: "Christos Zoulas" Subject: CVS commit: pkgsrc/net/netatalk3/files To: pkgsrc-changes@NetBSD.org Reply-To: christos@netbsd.org X-Mailer: log_accum Message-Id: <20161107004232.8F780FBA6@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_1478479352256160 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: christos Date: Mon Nov 7 00:42:32 UTC 2016 Added Files: pkgsrc/net/netatalk3/files: netatalk netatalk_smf.sh Log Message: new startup scripts To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/net/netatalk3/files/netatalk \ pkgsrc/net/netatalk3/files/netatalk_smf.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1478479352256160 Content-Disposition: inline Content-Length: 1428 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/net/netatalk3/files/netatalk diff -u /dev/null pkgsrc/net/netatalk3/files/netatalk:1.1 --- /dev/null Sun Nov 6 19:42:32 2016 +++ pkgsrc/net/netatalk3/files/netatalk Sun Nov 6 19:42:32 2016 @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $NetBSD: netatalk,v 1.1 2016/11/07 00:42:32 christos Exp $ +# + +# PROVIDE: netatalk +# REQUIRE: NETWORKING mountcritremote syslogd + +$_rc_subr_loaded . /etc/rc.subr + +name="netatalk" +rcvar=$name +command="/usr/pkg/libexec/netatalk/${name}" +pidfile="/var/run/${name}.pid" +required_files="/etc/${name}/afp.conf /etc/${name}/extmap.conf" + +load_rc_config $name +run_rc_command "$1" Index: pkgsrc/net/netatalk3/files/netatalk_smf.sh diff -u /dev/null pkgsrc/net/netatalk3/files/netatalk_smf.sh:1.1 --- /dev/null Sun Nov 6 19:42:32 2016 +++ pkgsrc/net/netatalk3/files/netatalk_smf.sh Sun Nov 6 19:42:32 2016 @@ -0,0 +1,32 @@ +#!@SMF_METHOD_SHELL@ +# +# SunOS SMF start/stop/refresh "methods" script for Netatalk 3 + +# $NetBSD: netatalk_smf.sh,v 1.1 2016/11/07 00:42:32 christos Exp $ + +PIDFILE=@VARBASE@/run/netatalk.pid + +case $1 in +'start') + @PREFIX@/libexec/netatalk/netatalk + ;; + +'stop') + if [ -f "$PIDFILE" ]; then + /usr/bin/kill `/usr/bin/head -1 $PIDFILE` + fi + ;; + +'refresh') + if [ -f "$PIDFILE" ]; then + /usr/bin/kill -HUP `/usr/bin/head -1 $PIDFILE` + fi + ;; + +*) + echo "Usage: $0 { start | stop | refresh }" + exit 1 + ;; +esac + +exit $? --_----------=_1478479352256160--