pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/39271: rcd_scripts don't work if names match package directory



The following reply was made to PR pkg/39271; it has been noted by GNATS.

From: "Jeremy C. Reed" <reed%reedmedia.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: smb%cs.columbia.edu@localhost
Subject: Re: pkg/39271: rcd_scripts don't work if names match package directory
Date: Sat, 2 Aug 2008 10:05:46 -0500 (CDT)

 The following worked for me for the package you sent me. (Be sure to add 
 entry to PLIST too.) Just added a unique suffix to filename for the copy 
 in the work directory.
 
 Index: mk/pkginstall/bsd.pkginstall.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/pkginstall/bsd.pkginstall.mk,v
 retrieving revision 1.46
 diff -u -r1.46 bsd.pkginstall.mk
 --- mk/pkginstall/bsd.pkginstall.mk    4 Mar 2008 06:51:41 -0000       1.46
 +++ mk/pkginstall/bsd.pkginstall.mk    2 Aug 2008 15:04:09 -0000
 @@ -1135,7 +1135,7 @@
  
  .for _script_ in ${RCD_SCRIPTS}
  RCD_SCRIPT_SRC.${_script_}?=  ${FILESDIR}/${_script_}.sh
 -RCD_SCRIPT_WRK.${_script_}?=  ${WRKDIR}/${_script_}
 +RCD_SCRIPT_WRK.${_script_}?=  ${WRKDIR}/${_script_}.rc.d-script
  
  .  if !empty(RCD_SCRIPT_SRC.${_script_})
  generate-rcd-scripts: ${RCD_SCRIPT_WRK.${_script_}}
 


Home | Main Index | Thread Index | Old Index