Creating IPS Packages
Here's an example showing how to create OpenSolaris packages using the Image Packaging System (IPS).
Enable local pkg server
$ pfexec svccfg -s pkg/server "setprop pkg/port=10000" $ pfexec svcadm refresh pkg/server $ pfexec svcadm enable pkg/server $ pfexec svcadm restart pkg/server
Install build dependencies
$ pfexec pkg install gcc-dev (or ss-dev if you prefer sunstudio) $ pfexec pkg install SUNWGlib $ pfexec pkg install SUNWsfwhea $ pfexec pkg install SUNWxwinc
Determine install locations
Here are the recommended package install locations[1].
- User commands under /usr/bin or /usr/sbin - Header files under /usr/include - Libraries under /usr/lib - Manual pages under /usr/share/man - Other files under /usr/lib or /usr/share - Conflicting GNU components go under /usr/gnu
Compile
$ mkdir ~/tmp $ cd $ INSTDESTDIR=`pwd`/tmp $ VERSION=4.6.1 $ wget -c http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-4.6.1.tar.gz $ tar xzvf mc-4.6.1.tar.gz && cd mc-4.6.1 $ ./configure ~--prefix=$INSTDESTDIR $ make $ make install $ cp COPYING ~/
Create IPS Manifest and push to repo
You can use the attached perl script to generate file lists compatible with pkgsend.
Alternate way is to tarball the $INSTDESTDIR area and use 'import /path/to/mc.tar' instead of dir, file and link actions.
$ cd $INSTDESTDIR $ cat <<EOF >mc.include # # header # set name=pkg.name value="Midnight Commander" set name=pkg.description value="GNU Midnight Commander - orthodox terminal file manager for Unix-like systems" set name=pkg.detailed_url value=http://en.wikipedia.org/wiki/Midnight_Commander set name=info.maintainer value="Vit Hrachovy (vit.hrachovy@sun.com)" set name=info.upstream value=mc-devel@gnome.org set name=info.upstream_url value=http://www.ibiblio.org/mc/ set name=info.source_url value=http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-4.6.1.tar.gz set name=info.repository_url value=http://cvs.savannah.gnu.org/viewcvs/mc/mc/ set name=info.classification value="org.opensolaris.category.2008:Applications/System Utilities" license $HOME/COPYING license="GPLv2" # # dependencies # depend fmri=pkg:/SUNWGlib@1.2.10-0.86 type=require # # directories # dir mode=0555 owner=root group=bin path=/usr/ dir mode=0555 owner=root group=bin path=/usr/bin dir mode=0555 owner=root group=bin path=/usr/lib dir mode=0555 owner=root group=bin path=/usr/lib/mc dir mode=0555 owner=root group=bin path=/usr/share dir mode=0555 owner=root group=bin path=/usr/share/mc dir mode=0555 owner=root group=bin path=/usr/share/mc/bin dir mode=0555 owner=root group=bin path=/usr/share/mc/syntax dir mode=0555 owner=root group=bin path=/usr/share/mc/extfs dir mode=0555 owner=root group=bin path=/usr/share/locale dir mode=0555 owner=root group=bin path=/usr/share/locale/ca dir mode=0555 owner=root group=bin path=/usr/share/locale/ca/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/ro dir mode=0555 owner=root group=bin path=/usr/share/locale/ro/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/it dir mode=0555 owner=root group=bin path=/usr/share/locale/it/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/ta dir mode=0555 owner=root group=bin path=/usr/share/locale/ta/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/sl dir mode=0555 owner=root group=bin path=/usr/share/locale/sl/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/sr dir mode=0555 owner=root group=bin path=/usr/share/locale/sr/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/tr dir mode=0555 owner=root group=bin path=/usr/share/locale/tr/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/sk dir mode=0555 owner=root group=bin path=/usr/share/locale/sk/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/be dir mode=0555 owner=root group=bin path=/usr/share/locale/be/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/da dir mode=0555 owner=root group=bin path=/usr/share/locale/da/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/ja dir mode=0555 owner=root group=bin path=/usr/share/locale/ja/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/de dir mode=0555 owner=root group=bin path=/usr/share/locale/de/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/uk dir mode=0555 owner=root group=bin path=/usr/share/locale/uk/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/el dir mode=0555 owner=root group=bin path=/usr/share/locale/el/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/zh_TW dir mode=0555 owner=root group=bin path=/usr/share/locale/zh_TW/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/az dir mode=0555 owner=root group=bin path=/usr/share/locale/az/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/sv dir mode=0555 owner=root group=bin path=/usr/share/locale/sv/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/fi dir mode=0555 owner=root group=bin path=/usr/share/locale/fi/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/lv dir mode=0555 owner=root group=bin path=/usr/share/locale/lv/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/eu dir mode=0555 owner=root group=bin path=/usr/share/locale/eu/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/pt dir mode=0555 owner=root group=bin path=/usr/share/locale/pt/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/ko dir mode=0555 owner=root group=bin path=/usr/share/locale/ko/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/zh_CN dir mode=0555 owner=root group=bin path=/usr/share/locale/zh_CN/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/ru dir mode=0555 owner=root group=bin path=/usr/share/locale/ru/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/cs dir mode=0555 owner=root group=bin path=/usr/share/locale/cs/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/lt dir mode=0555 owner=root group=bin path=/usr/share/locale/lt/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/fr dir mode=0555 owner=root group=bin path=/usr/share/locale/fr/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/mn dir mode=0555 owner=root group=bin path=/usr/share/locale/mn/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/nl dir mode=0555 owner=root group=bin path=/usr/share/locale/nl/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/bg dir mode=0555 owner=root group=bin path=/usr/share/locale/bg/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/wa dir mode=0555 owner=root group=bin path=/usr/share/locale/wa/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/es dir mode=0555 owner=root group=bin path=/usr/share/locale/es/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/pl dir mode=0555 owner=root group=bin path=/usr/share/locale/pl/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/pt_BR dir mode=0555 owner=root group=bin path=/usr/share/locale/pt_BR/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/hu dir mode=0555 owner=root group=bin path=/usr/share/locale/hu/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/share/locale/no dir mode=0555 owner=root group=bin path=/usr/share/locale/no/LC_MESSAGES dir mode=0555 owner=root group=bin path=/usr/man dir mode=0555 owner=root group=bin path=/usr/man/man1 dir mode=0555 owner=root group=bin path=/usr/man/it dir mode=0555 owner=root group=bin path=/usr/man/it/man1 dir mode=0555 owner=root group=bin path=/usr/man/sr dir mode=0555 owner=root group=bin path=/usr/man/sr/man1 dir mode=0555 owner=root group=bin path=/usr/man/sr/man8 dir mode=0555 owner=root group=bin path=/usr/man/ru dir mode=0555 owner=root group=bin path=/usr/man/ru/man1 dir mode=0555 owner=root group=bin path=/usr/man/man8 dir mode=0555 owner=root group=bin path=/usr/man/pl dir mode=0555 owner=root group=bin path=/usr/man/pl/man1 dir mode=0555 owner=root group=bin path=/usr/man/es dir mode=0555 owner=root group=bin path=/usr/man/es/man1 dir mode=0555 owner=root group=bin path=/usr/man/hu dir mode=0555 owner=root group=bin path=/usr/man/hu/man1 dir mode=0555 owner=root group=bin path=/usr/sbin # # files # file usr/bin/mcmfmt mode=0555 owner=root group=bin path=/usr/bin/mcmfmt file usr/bin/mc mode=0555 owner=root group=bin path=/usr/bin/mc file usr/lib/charset.alias mode=0444 owner=root group=bin path=/usr/lib/charset.alias file usr/share/mc/mc.ext mode=0444 owner=root group=bin path=/usr/share/mc/mc.ext file usr/share/mc/mc.hlp.sr mode=0444 owner=root group=bin path=/usr/share/mc/mc.hlp.sr file usr/share/mc/mc.hint.zh mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.zh file usr/share/mc/bin/mc-wrapper.sh mode=0555 owner=root group=bin path=/usr/share/mc/bin/mc-wrapper.sh file usr/share/mc/bin/mc-wrapper.csh mode=0555 owner=root group=bin path=/usr/share/mc/bin/mc-wrapper.csh file usr/share/mc/bin/mc.sh mode=0555 owner=root group=bin path=/usr/share/mc/bin/mc.sh file usr/share/mc/bin/mc.csh mode=0555 owner=root group=bin path=/usr/share/mc/bin/mc.csh file usr/share/mc/mc.hlp.it mode=0444 owner=root group=bin path=/usr/share/mc/mc.hlp.it file usr/share/mc/edit.indent.rc mode=0444 owner=root group=bin path=/usr/share/mc/edit.indent.rc file usr/share/mc/mc.hint.sr mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.sr file usr/share/mc/mc.menu mode=0444 owner=root group=bin path=/usr/share/mc/mc.menu file usr/share/mc/mc.hint.it mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.it file usr/share/mc/mc.hlp mode=0444 owner=root group=bin path=/usr/share/mc/mc.hlp file usr/share/mc/mc.hint.ru mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.ru file usr/share/mc/syntax/ml.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/ml.syntax file usr/share/mc/syntax/assembler.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/assembler.syntax file usr/share/mc/syntax/texinfo.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/texinfo.syntax file usr/share/mc/syntax/spec.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/spec.syntax file usr/share/mc/syntax/ruby.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/ruby.syntax file usr/share/mc/syntax/js.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/js.syntax file usr/share/mc/syntax/html.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/html.syntax file usr/share/mc/syntax/idl.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/idl.syntax file usr/share/mc/syntax/makefile.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/makefile.syntax file usr/share/mc/syntax/m4.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/m4.syntax file usr/share/mc/syntax/cs.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/cs.syntax file usr/share/mc/syntax/xml.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/xml.syntax file usr/share/mc/syntax/java.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/java.syntax file usr/share/mc/syntax/syntax.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/syntax.syntax file usr/share/mc/syntax/lisp.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/lisp.syntax file usr/share/mc/syntax/perl.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/perl.syntax file usr/share/mc/syntax/eiffel.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/eiffel.syntax file usr/share/mc/syntax/octave.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/octave.syntax file usr/share/mc/syntax/ada95.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/ada95.syntax file usr/share/mc/syntax/php.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/php.syntax file usr/share/mc/syntax/latex.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/latex.syntax file usr/share/mc/syntax/tcl.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/tcl.syntax file usr/share/mc/syntax/swig.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/swig.syntax file usr/share/mc/syntax/sh.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/sh.syntax file usr/share/mc/syntax/changelog.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/changelog.syntax file usr/share/mc/syntax/slang.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/slang.syntax file usr/share/mc/syntax/fortran.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/fortran.syntax file usr/share/mc/syntax/pascal.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/pascal.syntax file usr/share/mc/syntax/sql.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/sql.syntax file usr/share/mc/syntax/po.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/po.syntax file usr/share/mc/syntax/c.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/c.syntax file usr/share/mc/syntax/diff.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/diff.syntax file usr/share/mc/syntax/dos.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/dos.syntax file usr/share/mc/syntax/Syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/Syntax file usr/share/mc/syntax/aspx.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/aspx.syntax file usr/share/mc/syntax/lua.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/lua.syntax file usr/share/mc/syntax/nroff.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/nroff.syntax file usr/share/mc/syntax/smalltalk.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/smalltalk.syntax file usr/share/mc/syntax/unknown.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/unknown.syntax file usr/share/mc/syntax/lsm.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/lsm.syntax file usr/share/mc/syntax/mail.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/mail.syntax file usr/share/mc/syntax/python.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/python.syntax file usr/share/mc/syntax/povray.syntax mode=0444 owner=root group=bin path=/usr/share/mc/syntax/povray.syntax file usr/share/mc/cedit.menu mode=0444 owner=root group=bin path=/usr/share/mc/cedit.menu file usr/share/mc/mc.hlp.ru mode=0444 owner=root group=bin path=/usr/share/mc/mc.hlp.ru file usr/share/mc/mc.hint mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint file usr/share/mc/mc.hint.uk mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.uk file usr/share/mc/mc.hint.nl mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.nl file usr/share/mc/extfs/uzip mode=0555 owner=root group=bin path=/usr/share/mc/extfs/uzip file usr/share/mc/extfs/apt mode=0555 owner=root group=bin path=/usr/share/mc/extfs/apt file usr/share/mc/extfs/bpp mode=0555 owner=root group=bin path=/usr/share/mc/extfs/bpp file usr/share/mc/extfs/a mode=0555 owner=root group=bin path=/usr/share/mc/extfs/a file usr/share/mc/extfs/iso9660 mode=0555 owner=root group=bin path=/usr/share/mc/extfs/iso9660 file usr/share/mc/extfs/uarj mode=0555 owner=root group=bin path=/usr/share/mc/extfs/uarj file usr/share/mc/extfs/README mode=0444 owner=root group=bin path=/usr/share/mc/extfs/README file usr/share/mc/extfs/trpm mode=0555 owner=root group=bin path=/usr/share/mc/extfs/trpm file usr/share/mc/extfs/hp48 mode=0555 owner=root group=bin path=/usr/share/mc/extfs/hp48 file usr/share/mc/extfs/patchfs mode=0555 owner=root group=bin path=/usr/share/mc/extfs/patchfs file usr/share/mc/extfs/deba mode=0555 owner=root group=bin path=/usr/share/mc/extfs/deba file usr/share/mc/extfs/lslR mode=0555 owner=root group=bin path=/usr/share/mc/extfs/lslR file usr/share/mc/extfs/urar mode=0555 owner=root group=bin path=/usr/share/mc/extfs/urar file usr/share/mc/extfs/mailfs mode=0555 owner=root group=bin path=/usr/share/mc/extfs/mailfs file usr/share/mc/extfs/deb mode=0555 owner=root group=bin path=/usr/share/mc/extfs/deb file usr/share/mc/extfs/dpkg mode=0555 owner=root group=bin path=/usr/share/mc/extfs/dpkg file usr/share/mc/extfs/debd mode=0555 owner=root group=bin path=/usr/share/mc/extfs/debd file usr/share/mc/extfs/uha mode=0555 owner=root group=bin path=/usr/share/mc/extfs/uha file usr/share/mc/extfs/rpm mode=0555 owner=root group=bin path=/usr/share/mc/extfs/rpm file usr/share/mc/extfs/ulha mode=0555 owner=root group=bin path=/usr/share/mc/extfs/ulha file usr/share/mc/extfs/rpms mode=0555 owner=root group=bin path=/usr/share/mc/extfs/rpms file usr/share/mc/extfs/audio mode=0555 owner=root group=bin path=/usr/share/mc/extfs/audio file usr/share/mc/extfs/uar mode=0555 owner=root group=bin path=/usr/share/mc/extfs/uar file usr/share/mc/extfs/uzoo mode=0555 owner=root group=bin path=/usr/share/mc/extfs/uzoo file usr/share/mc/extfs/sfs.ini mode=0444 owner=root group=bin path=/usr/share/mc/extfs/sfs.ini file usr/share/mc/extfs/extfs.ini mode=0444 owner=root group=bin path=/usr/share/mc/extfs/extfs.ini file usr/share/mc/edit.spell.rc mode=0444 owner=root group=bin path=/usr/share/mc/edit.spell.rc file usr/share/mc/mc.menu.sr mode=0444 owner=root group=bin path=/usr/share/mc/mc.menu.sr file usr/share/mc/mc.hint.cs mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.cs file usr/share/mc/mc.hint.pl mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.pl file usr/share/mc/mc.hint.es mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.es file usr/share/mc/mc.hint.hu mode=0444 owner=root group=bin path=/usr/share/mc/mc.hint.hu file usr/share/mc/mc.lib mode=0444 owner=root group=bin path=/usr/share/mc/mc.lib file usr/share/mc/mc.hlp.es mode=0444 owner=root group=bin path=/usr/share/mc/mc.hlp.es file usr/share/mc/mc.hlp.pl mode=0444 owner=root group=bin path=/usr/share/mc/mc.hlp.pl file usr/share/mc/mc.hlp.hu mode=0444 owner=root group=bin path=/usr/share/mc/mc.hlp.hu file usr/share/locale/ca/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/ca/LC_MESSAGES/mc.mo file usr/share/locale/ro/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/ro/LC_MESSAGES/mc.mo file usr/share/locale/it/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/it/LC_MESSAGES/mc.mo file usr/share/locale/ta/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/ta/LC_MESSAGES/mc.mo file usr/share/locale/sl/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/sl/LC_MESSAGES/mc.mo file usr/share/locale/sr/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/sr/LC_MESSAGES/mc.mo file usr/share/locale/tr/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/tr/LC_MESSAGES/mc.mo file usr/share/locale/sk/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/sk/LC_MESSAGES/mc.mo file usr/share/locale/be/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/be/LC_MESSAGES/mc.mo file usr/share/locale/locale.alias mode=0444 owner=root group=bin path=/usr/share/locale/locale.alias file usr/share/locale/da/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/da/LC_MESSAGES/mc.mo file usr/share/locale/ja/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/ja/LC_MESSAGES/mc.mo file usr/share/locale/de/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/de/LC_MESSAGES/mc.mo file usr/share/locale/uk/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/uk/LC_MESSAGES/mc.mo file usr/share/locale/el/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/el/LC_MESSAGES/mc.mo file usr/share/locale/zh_TW/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/zh_TW/LC_MESSAGES/mc.mo file usr/share/locale/az/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/az/LC_MESSAGES/mc.mo file usr/share/locale/sv/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/sv/LC_MESSAGES/mc.mo file usr/share/locale/fi/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/fi/LC_MESSAGES/mc.mo file usr/share/locale/lv/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/lv/LC_MESSAGES/mc.mo file usr/share/locale/eu/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/eu/LC_MESSAGES/mc.mo file usr/share/locale/pt/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/pt/LC_MESSAGES/mc.mo file usr/share/locale/ko/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/ko/LC_MESSAGES/mc.mo file usr/share/locale/zh_CN/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/zh_CN/LC_MESSAGES/mc.mo file usr/share/locale/ru/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/ru/LC_MESSAGES/mc.mo file usr/share/locale/cs/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/cs/LC_MESSAGES/mc.mo file usr/share/locale/lt/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/lt/LC_MESSAGES/mc.mo file usr/share/locale/fr/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/fr/LC_MESSAGES/mc.mo file usr/share/locale/mn/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/mn/LC_MESSAGES/mc.mo file usr/share/locale/nl/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/nl/LC_MESSAGES/mc.mo file usr/share/locale/bg/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/bg/LC_MESSAGES/mc.mo file usr/share/locale/wa/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/wa/LC_MESSAGES/mc.mo file usr/share/locale/es/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/es/LC_MESSAGES/mc.mo file usr/share/locale/pl/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/pl/LC_MESSAGES/mc.mo file usr/share/locale/pt_BR/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/pt_BR/LC_MESSAGES/mc.mo file usr/share/locale/hu/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/hu/LC_MESSAGES/mc.mo file usr/share/locale/no/LC_MESSAGES/mc.mo mode=0444 owner=root group=bin path=/usr/share/locale/no/LC_MESSAGES/mc.mo file usr/man/man1/mcedit.1 mode=0444 owner=root group=bin path=/usr/man/man1/mcedit.1 file usr/man/man1/mc.1 mode=0444 owner=root group=bin path=/usr/man/man1/mc.1 file usr/man/man1/mcview.1 mode=0444 owner=root group=bin path=/usr/man/man1/mcview.1 file usr/man/it/man1/mc.1 mode=0444 owner=root group=bin path=/usr/man/it/man1/mc.1 file usr/man/sr/man1/mc.1 mode=0444 owner=root group=bin path=/usr/man/sr/man1/mc.1 file usr/man/ru/man1/mc.1 mode=0444 owner=root group=bin path=/usr/man/ru/man1/mc.1 file usr/man/pl/man1/mc.1 mode=0444 owner=root group=bin path=/usr/man/pl/man1/mc.1 file usr/man/es/man1/mc.1 mode=0444 owner=root group=bin path=/usr/man/es/man1/mc.1 file usr/man/hu/man1/mc.1 mode=0444 owner=root group=bin path=/usr/man/hu/man1/mc.1 # # links # link mode=0555 owner=root group=bin path=/usr/bin/mcview target=mc link mode=0555 owner=root group=bin path=/usr/bin/mcedit target=mc EOF $ eval `pkgsend open IPSmc@$VERSION-1` $ pkgsend include ./mc.include $ if [ "$?" = "0" ]; then $ pkgsend close $ else $ echo "Errors in include file, not closing the transaction!" $ fi
Install the package
$ pfexec pkg set-authority -O http://localhost:10000 localrepo $ pfexec pkg install IPSmc
Verify package works
$ mc Left File Command Options Right +<-/usr~------------------------------v>++<-~~---------------------------------v>+ | Name | Size | MTime || Name | Size | MTime | |/.. |UP~--DIR| ^|/.. |UP~--DIR| ^ |~5bin | 5|Nov 14 11:10 *|/.mc | 2|Nov 17 20:51 * |/SUNWale | 6|Nov 14 11:20 ||/.sunw | 3|Nov 14 11:35 | |~X | 9|Nov 14 11:08 || | | | |/X11 | 8|Nov 14 11:13 || | | | |~X11R6 | 3|Nov 14 11:18 || | | | |~adm | 10|Nov 14 11:08 || | | | |/apache | 10|Nov 14 11:14 || | | | |/apache2 | 3|Nov 14 11:11 || | | | |/appserver | 12|Nov 14 11:12 || | | | |/apr | 3|Nov 14 11:10 || | | | |/apr-util | 3|Nov 14 11:10 || | | | |/ast | 3|Nov 14 11:13 || | | | |/benchmarks | 3|Nov 14 11:16 || | | | |/bin | 1674|Nov 14 11:21 || | | | +~--------------------------------------v+~--------------------------------------v |/.. ||/.. | +~--------------------------------------++~--------------------------------------+ Note: Shell commands will not work when you are on a non-local file system. #
References
on 2009/10/26 12:31