Date: Thu, 10 Sep 2009 16:37:44 GMT From: Michael Graziano <mikeg@bsd-box.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/138707: Port update: sysutils/radmind - Fix plist so package creates a working client Message-ID: <200909101637.n8AGbiDp003422@www.freebsd.org> Resent-Message-ID: <200909101640.n8AGe1KO039604@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 138707 >Category: ports >Synopsis: Port update: sysutils/radmind - Fix plist so package creates a working client >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: Thu Sep 10 16:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Michael Graziano >Release: Multiple >Organization: >Environment: Multiple >Description: Update the packing list for sysutils/radmind to create directories required by the radmind client applications (ktcheck, fsdiff). This update makes the radmind client usable when installed from a package as opposed to from ports. This patch also updates the @dirrmtry block to remove all directories radmind may create (as a client or server). Note that the radmind port uses an absolute path for RADMIND_BASE_DIR in the port's Makefile hence the "@cwd /" before the @dirrmtry block. This patch does not create directories used by the radmind server (these are not created when installed from a port or from source). shar'd port & diff included. >How-To-Repeat: Install radmind from a package -- /var/radmind/{client,cert,preapply,postapply} will not be created. Remove/Deinstall the radmind package -- /var/radmind/* will not be properly cleaned up. >Fix: Patch below: ==== BEGIN radmind-1.13.0.patch === --- /usr/ports/sysutils/radmind/pkg-plist 2007-03-16 08:55:46.000000000 -0400 +++ radmind/pkg-plist 2009-09-10 12:13:04.000000000 -0400 @@ -14,5 +14,21 @@ %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/SPEC %%PORTDOCS%%@dirrm %%DOCSDIR%% +@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%% +@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/cert +@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/client +@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/preapply +@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/postapply +@cwd / +@dirrmtry %%RADMIND_BASE_DIR%%/transcript +@dirrmtry %%RADMIND_BASE_DIR%%/tmp/transcript +@dirrmtry %%RADMIND_BASE_DIR%%/tmp/file +@dirrmtry %%RADMIND_BASE_DIR%%/tmp +@dirrmtry %%RADMIND_BASE_DIR%%/special +@dirrmtry %%RADMIND_BASE_DIR%%/postapply +@dirrmtry %%RADMIND_BASE_DIR%%/preapply +@dirrmtry %%RADMIND_BASE_DIR%%/file +@dirrmtry %%RADMIND_BASE_DIR%%/command +@dirrmtry %%RADMIND_BASE_DIR%%/client @dirrmtry %%RADMIND_BASE_DIR%%/cert @dirrmtry %%RADMIND_BASE_DIR%% ==== END radmind-1.13.0.patch === Also attached as a .shar Patch attached with submission follows: # 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: # # radmind/ # radmind/files # radmind/files/radmind.sh.in # radmind/Makefile # radmind/distinfo # radmind/pkg-descr # radmind/pkg-plist # echo c - radmind/ mkdir -p radmind/ > /dev/null 2>&1 echo c - radmind/files mkdir -p radmind/files > /dev/null 2>&1 echo x - radmind/files/radmind.sh.in sed 's/^X//' >radmind/files/radmind.sh.in << '58bb16bb82807afc9d722d7c4577d531' X#!/bin/sh X# X# $FreeBSD: ports/sysutils/radmind/files/radmind.sh.in,v 1.2 2006/02/20 20:47:43 dougb Exp $ X# X X# PROVIDE: radmind X# REQUIRE: DAEMON X# KEYWORD: shutdown X X# X# Add the following lines to /etc/rc.conf to enable radmind: X# X#radmind_enable="YES" X# X# You may also override the default flags: X# X#radmind_flags="-D /var/radmind -m 5 -u 077 -Llocal7 -w 0" X# X# See radmind(8) for flags X# X X. %%RC_SUBR%% X Xname=radmind Xrcvar=`set_rcvar` X Xcommand=%%PREFIX%%/sbin/radmind Xcommand_args="" Xrequired_files=%%RADMIND_BASE_DIR%%/config X X# set defaults X Xradmind_enable=${radmind_enable:-"NO"} Xradmind_flags=${radmind_flags:-"-D %%RADMIND_BASE_DIR%% -m 5 -u 077 -Llocal7 -w 0"} X Xload_rc_config ${name} Xrun_rc_command "$1" 58bb16bb82807afc9d722d7c4577d531 echo x - radmind/Makefile sed 's/^X//' >radmind/Makefile << '01471ee2e8e2a99715ff23c87eb1c51b' X# New ports collection makefile for: radmind X# Date created: 2003-11-17 X# Whom: Paul Dlug <paul@aps.org> X# X# $FreeBSD: ports/sysutils/radmind/Makefile,v 1.18 2009/08/22 00:35:26 amdmi3 Exp $ X# X XPORTNAME= radmind XPORTVERSION= 1.13.0 XCATEGORIES= sysutils XMASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} X XMAINTAINER= paul@aps.org XCOMMENT= Utility for administering filesystem changes X XRADMIND_BASE_DIR?= /var/radmind X XUSE_OPENSSL= yes XUSE_RC_SUBR= radmind.sh XSUB_LIST= RADMIND_BASE_DIR=${RADMIND_BASE_DIR} XPLIST_SUB= RADMIND_BASE_DIR=${RADMIND_BASE_DIR} XMAKE_JOBS_UNSAFE= yes X XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --with-radminddir=${RADMIND_BASE_DIR} X XMAN1= fsdiff.1 ktcheck.1 lapply.1 lcksum.1 lcreate.1 lfdiff.1 \ X lmerge.1 lsort.1 twhich.1 rash.1 repo.1 XMAN5= applefile.5 XMAN8= radmind.8 XDOCS= COPYRIGHT README SPEC X Xpost-install: X # Ugly hack to remove generated man pages X ${RM} -rf ${WRKSRC}/tmp X X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} X.endif X X.include <bsd.port.mk> 01471ee2e8e2a99715ff23c87eb1c51b echo x - radmind/distinfo sed 's/^X//' >radmind/distinfo << 'e49b0ab8362f96a66c39f91e236fff8d' XMD5 (radmind-1.13.0.tar.gz) = 29ce0070b707a47fe0de505ae7d68047 XSHA256 (radmind-1.13.0.tar.gz) = 9d23787d8b482ad7cea590a970c40de2e7eec1f59d05b542df7f399679991b7f XSIZE (radmind-1.13.0.tar.gz) = 447650 e49b0ab8362f96a66c39f91e236fff8d echo x - radmind/pkg-descr sed 's/^X//' >radmind/pkg-descr << '01424a3af9c1b601ba2222c08ba92026' Xradmind is a set of tools for creating filesystem diffs which can be Xloaded over the network. This is useful for administering a large number Xof hosts at the filesystem level. It can also act as an intelligent Xtripwire. X XWWW: http://rsug.itd.umich.edu/software/radmind/ 01424a3af9c1b601ba2222c08ba92026 echo x - radmind/pkg-plist sed 's/^X//' >radmind/pkg-plist << '566f2695f4cbe94cc7197d7837ef04d4' Xbin/fsdiff Xbin/ktcheck Xbin/lapply Xbin/lcksum Xbin/lcreate Xbin/lfdiff Xbin/lmerge Xbin/lsort Xbin/ra.sh Xbin/repo Xbin/twhich Xsbin/radmind X%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/SPEC X%%PORTDOCS%%@dirrm %%DOCSDIR%% X@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%% X@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/cert X@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/client X@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/preapply X@exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/postapply X@cwd / X@dirrmtry %%RADMIND_BASE_DIR%%/transcript X@dirrmtry %%RADMIND_BASE_DIR%%/tmp/transcript X@dirrmtry %%RADMIND_BASE_DIR%%/tmp/file X@dirrmtry %%RADMIND_BASE_DIR%%/tmp X@dirrmtry %%RADMIND_BASE_DIR%%/special X@dirrmtry %%RADMIND_BASE_DIR%%/postapply X@dirrmtry %%RADMIND_BASE_DIR%%/preapply X@dirrmtry %%RADMIND_BASE_DIR%%/file X@dirrmtry %%RADMIND_BASE_DIR%%/command X@dirrmtry %%RADMIND_BASE_DIR%%/client X@dirrmtry %%RADMIND_BASE_DIR%%/cert X@dirrmtry %%RADMIND_BASE_DIR%% 566f2695f4cbe94cc7197d7837ef04d4 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909101637.n8AGbiDp003422>