Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2011 17:50:22 GMT
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/157628: [patch] www/red5 remove user data while reinstalling updating
Message-ID:  <201107101750.p6AHoMGO049543@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/157628; it has been noted by GNATS.

From: Olli Hauer <ohauer@FreeBSD.org>
To: bug-followup@FreeBSD.org, joris.dedieu@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
 +@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
 +@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
 -@dirrm red5/conf
 +@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107101750.p6AHoMGO049543>