diff options
author | John Terpstra <jht@samba.org> | 1997-10-04 02:57:14 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 1997-10-04 02:57:14 +0000 |
commit | 83574da44b649ecc2bf163109ffbae5e21eef649 (patch) | |
tree | fde68f06f16bf02c26930652aa80f45d9d21e329 /packaging/Solaris/pkg-specs/mkprototype | |
parent | e722d7077695242a7d6c0749b9a63741f660382a (diff) | |
download | samba-83574da44b649ecc2bf163109ffbae5e21eef649.tar.gz samba-83574da44b649ecc2bf163109ffbae5e21eef649.tar.bz2 samba-83574da44b649ecc2bf163109ffbae5e21eef649.zip |
JHT ===> Added Sun Solaris binary package building spec files contributed
by Tim Towers <tim@lorien.demon.co.uk>. Note: Not yet checked.
(This used to be commit 332f78bbc945c327069e9c9e29c7137c8cbd5c02)
Diffstat (limited to 'packaging/Solaris/pkg-specs/mkprototype')
-rw-r--r-- | packaging/Solaris/pkg-specs/mkprototype | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packaging/Solaris/pkg-specs/mkprototype b/packaging/Solaris/pkg-specs/mkprototype new file mode 100644 index 0000000000..5ca0746bee --- /dev/null +++ b/packaging/Solaris/pkg-specs/mkprototype @@ -0,0 +1,31 @@ +#!/bin/sh +# this creates prototype files +pkgproto * > prototype +nawk 'BEGIN { print "# d directory" + print "# e a file to be edited upon installation or removal" + print "# f a standard executable or data file" + print "# i installation script or information file" + print "# l linked file" + print "# s symbolic link" + print "# v volatile file (one whose contents are expected to +change)" + print "#" } +/ pkginfo / { print "i pkginfo" ; next } +/ postinstall / { print "i postinstall" ; next } +/ postremove / { print "i postremove" ; next } +/d none usr / { print "d none usr ? ? ?" ; next } +/d none usr\/local / { print "d none usr/local ? ? ?" ; next } +/d none etc / { print "d none etc ? ? ?" ; next } +/f none etc\// { $1 = "v" } +/d none opt / { print "d none opt ? ? ?" ; next } +/d none var / { print "d none var ? ? ?" ; next } +/none prototype / { next } +/none mkprototype / { next } +/ src[ \/]/ { next } +/^[dfv]/ { $5 = "bin" + $6 = "bin" + print + next } +{ print }' prototype >/tmp/prototype.$$ +mv /tmp/prototype.$$ prototype + |