Maintainer line replacement script / Port removal policy
Hi there, I've started a script to replace maintainer lines with "unmaintained". This is mainly meant to mark ports as unmaintained when a maintainer leaves, however we could also automate the port removal and use it for regular port removal as well, such that a developer never manually removes a port, but just marks it as unmaintained, and some script which runs once per day picks them up, sends out a reminder after ~20 days (optionally with a special warning to maintainers of dependent ports), and removes it after 30 days (number of days chosen randomly). This would give other maintainers and users some time to pick a port up. The questions remains who should do security updates to these packages in the days before it's unmaintained. The script is here: http://jw.smts.ch/files/crux/set_unmaint Currently, it does not replace the maintainer but just prints an updated version (add -i to sed line to change this), and it's meant to be run like this: $ set_unmaint ~/crux/ports/core prt-get httpup ... Opinions, patches? Cheers, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
Hi, On Monday, 30. June 2008 12:15:47 Johannes Winkelmann wrote:
I've started a script to replace maintainer lines with "unmaintained". [...] Opinions, patches?
I've tried your script; it seems to be quite nice, but it has some problems with encodings. It doesn't like the 'ß' in my name. After using it on a port, the Maintainer line looks like this: "# Maintainer: unmaintained, maintainer-wanted at crux dot nußner, viper at hometux dot de" The problem is, that my system's locale is UTF-8 but the Pkgfile is encoded in latin1. I guess it's a rather special problem and fixing it won't be easy. Regards Simon
Hi Simon, Simon Gloßner wrote:
Hi,
On Monday, 30. June 2008 12:15:47 Johannes Winkelmann wrote:
I've started a script to replace maintainer lines with "unmaintained". [...] Opinions, patches?
I've tried your script; it seems to be quite nice, but it has some problems with encodings. It doesn't like the 'ß' in my name.
After using it on a port, the Maintainer line looks like this: "# Maintainer: unmaintained, maintainer-wanted at crux dot nußner, viper at hometux dot de"
The problem is, that my system's locale is UTF-8 but the Pkgfile is encoded in latin1. I guess it's a rather special problem and fixing it won't be easy. Well, why not migrate all our Pkgfiles to UTF-8, are there some problem with that?
I write some lines to recode files and seems that works fine. (Also could be extensible for any file's port) --- #!/bin/bash repo=opt for i in $(find /usr/ports/$repo -type f -name Pkgfile); do enc="$(file $i | awk '{print $2}')" [ "${enc}" == "ISO-8859" ] && enc="ISO-8859-1" recode -v ${enc}..UTF-8 $i done --- Best regards, Jose V Beneyto
participants (3)
-
Johannes Winkelmann
-
Jose V Beneyto
-
Simon Gloßner