[csw-maintainers] Tools to modify existing packages

Peter FELECAN pfelecan at opencsw.org
Wed Oct 20 10:37:02 CEST 2010


"Maciej (Matchek) Blizinski" <maciej at opencsw.org> writes:

> I would like to edit an existing unmaintained package, and remove
> certain files that I believe shouldn't be there.  Something along the
> lines of: gunzip, transform, edit, update the REV tag, update
> checksums, put the thing back together, release.  Do people have any
> tools to do such open package surgery?

Use the standard packaging tools. Here is a quick recipe that I used for
changing the dependency of gcc3core:

- mkdir gcc3core-x
- gunzip gcc3core-3.4.6\,REV\=2009.06.25-SunOS5.8-i386-CSW.pkg.gz
- pkgtrans gcc3core-3.4.6,REV=2009.06.25-SunOS5.8-i386-CSW.pkg /home/pfelecan/gcc3core-x CSWgcc3core
- make your modifications in the gcc3core-x
- pkgtrans -s ${PWD}/gcc3core-x "${PWD}/gcc3core-3.4.6,REV=2010.05.14-SunOS5.8-i386-CSW.pkg" CSWgcc3core
- gzip -9 "/home/pfelecan/gcc3core-3.4.6,REV=2010.05.14-SunOS5.8-i386-CSW.pkg"

Hope that I didn't forgot something important...
-- 
Peter


More information about the maintainers mailing list