Lukas, See comments below ...
Paul Lukas Rovensky wrote: > > I am porting pwgen (an easy to memorize passwords generator, [1]) to > OpenSolaris. I would like to ask for a code review. The changes can be > found at: > > http://cr.opensolaris.org/~lukas/pwgen/ 1. usr/src/cmd/pwgen/install-sfw Pass the VERS= info in from the Makefile.sfw Change as follows ... Roland Mainz wrote: > add a $ set -o errexit # at the beginning and > replace ". ${SRC}/tools/install.subr" with > "source ${SRC}/tools/install.subr" (the idea is to > catch failures in the script and abort it at that point, > right now the script will just continue) 2. usr/src/cmd/pwgen/Makefile.sfw You could add after the VER= line ... TARBALL=$(VER).tar.gz then replace throughout "$(VER).tar.gz" with $(TARBALL) 3. usr/src/pkgdefs/SUNWpwgen/copyright Add the source owner copyright lines (after the Sun disclaimer) extracting them from the uncompressed src tarball, see ... "http://src.opensolaris.org/source/xref/sfw/usr/src/pkgdefs/SUNWmeld/copyright" 4. usr/src/pkgdefs/SUNWpwgen/depend This has the Sun Copyright lines twice, delete the ones at the top This also looks like the default set of dependencies, have you checked the pkg has no others with the gate's pkg dependency checker script? If if has no others then delete this and use the default depend. 5. usr/src/pkgdefs/SUNWpwgen/pkginfo Delete this as its generated from the SUNWpwgen/pkginfo.tmpl 6. usr/src/pkgdefs/SUNWpwgen/pkginfo.tmpl On the DESC= line replace ', version 2.06' with ' (2.06)' Fix the CDDL header and top of file as per ... "http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/prototypes/" (there are other files that need fixing also). -- ---------------------------------------------------------------------- Paul Cunningham Software Engineer Tadpole Business Unit
