ports/157628: [patch] www/red5 remove user data while reinstalling updating

Olli Hauer ohauer at FreeBSD.org
Sun Jul 10 17:50:22 UTC 2011


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

From: Olli Hauer <ohauer at FreeBSD.org>
To: bug-followup at FreeBSD.org, joris.dedieu at gmail.com
Cc:  
Subject: Re: ports/157628: [patch] www/red5 remove user data while reinstalling
 updating
Date: Sun, 10 Jul 2011 19:43:15 +0200

 This can be fixed in pkg-plist and in the ports Makefile
 with other methodes.
 
 In ports Makefile:
 
 post-extract:
 	${MV} ${WRKSRC}/config-file ${WRKSRC}/config-file.sample
 
 
 In pkg-plist:
 --- pkg-plist.orig      2011-07-10 19:20:36.000000000 +0200
 +++ pkg-plist   2011-07-10 19:25:45.000000000 +0200
 @@ -21,8 +21,9 @@
  red5/conf/red5-origin.xml
  red5/conf/red5.globals
  red5/conf/red5.policy
 -red5/conf/red5.properties
 -red5/conf/red5.properties.bak
 + at unexec if cmp -s %D/red5/conf/red5.properties.sample
 %D/red5/conf/red5.properties; then rm -f %D/red5/conf/red5.properties; fi
 +red5/conf/red5.properties.sample
 + at exec [ -f %D/red5/conf/red5.properties ] || cp
 %D/red5/conf/red5.properties.sample %D/red5/conf/red5.properties
  red5/conf/red5.xml
  red5/conf/tomcat-users.xml
  red5/conf/truststore.jmx
 @@ -1059,5 +1060,5 @@
  @dirrmtry red5/log
  @dirrm red5/lib
  @dirrm red5/conf/war
 - at dirrm red5/conf
 + at dirrmtry red5/conf
  @dirrmtry red5
 
 
 
 Additional the pkg-plist file of the port should be sorted.
 
 Please install ports-mgmt/genplist and generate a starting
 pkg-plist with this tool!
 
 Example usage:
 $> cd ports/www/red5
 $> make clean
 $> genplist create /tmp
 $> mv pkg-plist pkg-plist.old && mv pkg-plist.new pkg-plist
 
 Now adjust missing settings like @dirrm -> @dirrmtry ..., then
 $> genplist clean
 $> genplist create /tmp
 
 echo foo >> /tmp/red5/conf/red5.properties
 pkg_delete red5...
 
 You will notice your config file is preserved
 
 If you have issues, I'm happy to help and then
 pick up the PR with a good pkg-plist file ;)
 
 --
 Regards,
 olli



More information about the freebsd-ports-bugs mailing list