# PaCkAgE DaTaStReAm
LNFtexinfo-update2 1 47
# end of header
0707010002c6db000081a400001782000005de000000015598dffb000003ca0000025c00000c7100000000000000000000001b00000000LNFtexinfo-update2/pkginfo CLASSES=none manifest
PSTAMP=q20150705094251
LICFILE=cddl.txt
LICURL=http://www.opensource.org/licenses/CDDL-1.0
LICINFO=Common Development and Distribution License (CDDL) 1.0
DESC=The texinfo-update2 service is a service to update non-system default texinfo dir files. It supplements the svc:/application/texinfo-update:default coming with the Oracle Solaris texinfo package, which is not able to update network shared info dir files properly - it prefers to update dir files being a symlink to the local /var/info/* only. In contrast texinfo-update2 supports multiple directories via its service property config/info_dirs (a comma separated list of info directories), however, the 'dir' files have to be real files (i.e. not symlinks, etc.).
BASEDIR=/usr
VENDOR=LINOFEE, http://www.linofee.org
EMAIL=developers@linofee.org
CATEGORY=utils,development,application
NAME=texinfo dir update service 2
SERIALNUM=001
MAXINST=1000
VERSION=1.0
ARCH=i386
PKG=LNFtexinfo-update2
0707010002c6da000081a400001782000005de000000015598dffb000001d70000025c00000c7100000000000000000000001a00000000LNFtexinfo-update2/pkgmap : 1 47
1 d none /lib ? ? ?
1 d none /lib/svc ? ? ?
1 d none /lib/svc/manifest ? ? ?
1 d none /lib/svc/manifest/application ? ? ?
1 f manifest /lib/svc/manifest/application/texinfo-update2.xml 0644 bin bin 2362 10135 1436081975
1 d none /lib/svc/method ? ? ?
1 f none /lib/svc/method/texinfo-update2 0644 bin bin 2638 12287 1434992627
1 i depend 53 4677 1434992627
1 i i.manifest 3032 45333 1426618113
1 i pkginfo 970 20338 1436082171
1 i r.manifest 2198 47773 1426618113
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!! 0707010002c6db000081a400001782000005de000000015598dffb000003ca0000025c00000c7100000000000000000000000800000000pkginfo CLASSES=none manifest
PSTAMP=q20150705094251
LICFILE=cddl.txt
LICURL=http://www.opensource.org/licenses/CDDL-1.0
LICINFO=Common Development and Distribution License (CDDL) 1.0
DESC=The texinfo-update2 service is a service to update non-system default texinfo dir files. It supplements the svc:/application/texinfo-update:default coming with the Oracle Solaris texinfo package, which is not able to update network shared info dir files properly - it prefers to update dir files being a symlink to the local /var/info/* only. In contrast texinfo-update2 supports multiple directories via its service property config/info_dirs (a comma separated list of info directories), however, the 'dir' files have to be real files (i.e. not symlinks, etc.).
BASEDIR=/usr
VENDOR=LINOFEE, http://www.linofee.org
EMAIL=developers@linofee.org
CATEGORY=utils,development,application
NAME=texinfo dir update service 2
SERIALNUM=001
MAXINST=1000
VERSION=1.0
ARCH=i386
PKG=LNFtexinfo-update2
0707010002c6da000081a400001782000005de000000015598dffb000001d70000025c00000c7100000000000000000000000700000000pkgmap : 1 47
1 d none /lib ? ? ?
1 d none /lib/svc ? ? ?
1 d none /lib/svc/manifest ? ? ?
1 d none /lib/svc/manifest/application ? ? ?
1 f manifest /lib/svc/manifest/application/texinfo-update2.xml 0644 bin bin 2362 10135 1436081975
1 d none /lib/svc/method ? ? ?
1 f none /lib/svc/method/texinfo-update2 0644 bin bin 2638 12287 1434992627
1 i depend 53 4677 1434992627
1 i i.manifest 3032 45333 1426618113
1 i pkginfo 970 20338 1436082171
1 i r.manifest 2198 47773 1426618113
0707010002c6e4000041ed00001782000005de000000025598dffc000000000000025c00000c7100000000000000000000000800000000install 0707010002c6e5000081a400001782000005de0000000155883ff3000000350000025c00000c7100000000000000000000000f00000000install/depend P SUNWtexi GNU texinfo - Texinfo utilities (texinfo)
0707010002c6e6000081a400001782000005de000000015508770100000bd80000025c00000c7100000000000000000000001300000000install/i.manifest #!/bin/sh
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Portions Copyright (c) 2007-2013 Jens Elkner.
#
# i.manifest - smf(5) service manifest install class action script
#
repfile=$PKG_INSTALL_ROOT/etc/svc/repository.db
export repfile
#
# If the repository does not yet exist, create it from the appropriate seed. If
# for some reason the seeds do not exist, svccfg(1M) will create the repository
# automatically.
#
if [ -z "${UNRELOCATE4IPS}" -a ! -f $repfile ]; then
if [ -n "$SUNW_PKG_INSTALL_ZONENAME" -a \
"$SUNW_PKG_INSTALL_ZONENAME" != "global" ]; then
[ -f $PKG_INSTALL_ROOT/lib/svc/seed/nonglobal.db ] && \
/usr/bin/cp $PKG_INSTALL_ROOT/lib/svc/seed/nonglobal.db \
$repfile
else
[ -f $PKG_INSTALL_ROOT/lib/svc/seed/global.db ] && \
/usr/bin/cp $PKG_INSTALL_ROOT/lib/svc/seed/global.db \
$repfile
fi
/usr/bin/chmod 0600 $repfile
/usr/bin/chown root:sys $repfile
fi
osrel=`uname -r`
if [ -n "${UNRELOCATE4IPS}" -o \
! -r $PKG_INSTALL_ROOT/etc/svc/volatile/repository_door ]
then
#
# smf(5) is not presently running for the destination environment.
# Since we presently cannot refresh without a running svc.startd(1M), we
# cannot consistently handle dependent placement. Defer to next boot.
#
while read src dst; do
if [ "$osrel" = '5.10' ]; then
/usr/bin/sed -e "s#@CLIENT_BASEDIR@#${CLIENT_BASEDIR}#g" \
-e 's,,,' $src >$dst
else
/usr/bin/sed -e "s#@CLIENT_BASEDIR@#${CLIENT_BASEDIR}#g" $src >$dst
fi
done
else
#
# Local package install.
#
while read src dst; do
if [ "$osrel" = '5.10' ]; then
/usr/bin/sed -e "s#@CLIENT_BASEDIR@#${CLIENT_BASEDIR}#g" \
-e 's,,,' $src >$dst
else
/usr/bin/sed -e "s#@CLIENT_BASEDIR@#${CLIENT_BASEDIR}#g" $src >$dst
fi
if [ "$PKG_INSTALL_ROOT" = '' -o "$PKG_INSTALL_ROOT" = '/' ]; then
SVCCFG_CHECKHASH=1
if [ "$osrel" = '5.10' ]; then
/usr/sbin/svccfg import $dst
fi
fi
done
if [ "$osrel" != '5.10' -a "$SVCCFG_CHECKHASH" = '1' ]; then
/usr/sbin/svcadm restart manifest-import
fi
fi
exit 0
0707010002c6e7000081ed00001782000005de0000000155087701000008960000025c00000c7100000000000000000000001300000000install/r.manifest #!/bin/sh
#
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Portions Copyright (c) 2007-2013 Jens Elkner.
#
# r.manifest - smf(5) manifest remove class action script
#
if [ "$PKG_INSTALL_ROOT" != '' -a "$PKG_INSTALL_ROOT" != '/' ]; then
# We can't safely disable the service in this case.
smf_alive=no
else
# We can verify if the service is disabled prior to removal.
[ -r /etc/svc/volatile/repository_door ] && smf_alive=yes
fi
MFSTSCAN=/lib/svc/bin/mfstscan
SVCCFG=/usr/sbin/svccfg
SVCPROP=/usr/bin/svcprop
osrel=`uname -r`
while read mfst; do
if [ "$smf_alive" = 'yes' ]; then
ENTITIES=`$SVCCFG inventory $mfst`
for fmri in $ENTITIES; do
# Determine whether any of our instances are enabled.
en_p=`$SVCPROP -C -p general/enabled $fmri 2>/dev/null`
en_o=`$SVCPROP -C -p general_ovr/enabled $fmri 2>/dev/null`
if [ "$en_p" = 'true' -o "$en_o" = 'true' ]; then
echo "$fmri remains enabled; aborting"
exit 1
fi
[ "$osrel" = '5.10' ] && $SVCCFG delete $fmri
done
# Delete the manifest hash value.
if [ "$osrel" = '5.10' ]; then
pg_name=`$MFSTSCAN -t $mfst`
if $SVCPROP -q -p $pg_name smf/manifest; then
$SVCCFG -s smf/manifest delpg $pg_name
fi
fi
fi
/usr/bin/rm $mfst
done
if [ "$osrel" != '5.10' -a "$smf_alive" = 'yes' ]; then
/usr/sbin/svcadm restart manifest-import
fi
exit 0
0707010002c6dc000041ed00001782000005de000000035598dffb000000000000025c00000c7100000000000000000000000500000000root 0707010002c6dd000041ed00001782000005de000000035598dffb000000000000025c00000c7100000000000000000000000900000000root/lib 0707010002c6de000041ed00001782000005de000000045598dffb000000000000025c00000c7100000000000000000000000d00000000root/lib/svc 0707010002c6e2000041ed00001782000005de000000025598dffc000000000000025c00000c7100000000000000000000001400000000root/lib/svc/method 0707010002c6e3000081a400001782000005de0000000155883ff300000a4e0000025c00000c7100000000000000000000002400000000root/lib/svc/method/texinfo-update2 #!/bin/ksh93
# License: CDDL 1.0 (see http://opensource.org/licenses/cddl-1.0)
# Copyright 2015 Jens Elkner.
DIR_PROP='config/info_dirs'
function getDirs {
[[ -z ${SMF_FMRI} ]] && SMF_FMRI='texinfo-update2:default'
typeset VAL="${ svcprop -p ${DIR_PROP} ${SMF_FMRI} 2>/dev/null ; }"
[[ ${VAL} == '""' || -z ${VAL} ]] && VAL='/local/usr/share/info'
print -- "${VAL//,/ }"
}
function updateDirs {
typeset F X DIRS FILES \
INSTALL='/usr/bin/install-info' ND=${ mktemp /tmp/tu2.XXXXXX ; }
integer I=0
if [[ -z ${ND} ]]; then
print -u2 'Unable to create a temp file - exiting.'
return 1
fi
trap "rm -f ${ND}" EXIT
[[ -x ${INSTALL} ]] || INSTALL=${ whence install-info ; }
if [[ -z ${INSTALL} ]]; then
print -u2 'install-info not found - exiting'
return 2
fi
for D in ${ getDirs ; } ; do
[[ ${D:0:1} == '/' ]] || D="/$D"
cd $D 2>/dev/null || continue
# We insist on a file. symlink stuff gets usually handled by the
# texinfo-update:default svc from the Solaris texinfo package. Also
# -ot test works for real files, only (stats the entry, not dst ...).
# However, we "record" symlinks and invoke svc-texinfo-update:default
# atthe end if any have been found. This makes packaging/transforming
# easier, since we can always use this svc ...
[[ -h dir ]] && (( I++ )) && continue
[[ -e dir && ! -f dir ]] && continue
[[ dir -ot . ]] || continue # no dir modification so nothing to do
FILES=''
for F in ~(N)*.info ~(N)*.info.gz ; do
FILES+=" $F"
done
printf \
'This is the file .../info/dir, which contains the
topmost node of the Info hierarchy, called (dir)Top.
The first time you invoke Info you start off looking at this node.
\x{1F}
File: dir, Node: Top This is the top of the INFO tree
This (the Directory node) gives a menu of major topics.
Typing "q" exits, "?" lists all Info commands, "d" returns here,
"h" gives a primer for first-timers,
"mEmacs" visits the Emacs manual, etc.
In Emacs, you can click mouse button 2 on a menu item or cross reference
to select it.
* Menu:
' >${ND}
if [[ -z ${FILES} ]]; then
[[ -e dir ]] || continue
else
for F in ${FILES} ; do
${INSTALL} $D/$F --dir-file=${ND}
done
fi
cp ${ND} dir && chmod 0644 dir
done
if (( I )); then
X=${ svcs -H -o STA texinfo-update:default 2>/dev/null ; }
[[ $X == 'ON' ]] && svcadm refresh -s texinfo-update:default
fi
return 0
}
# Allow manual invocation
[[ -z $1 ]] && METHOD='refresh' || METHOD="$1"
case "$1" in
start|refresh) updateDirs || exit $? ;;
stop) ;;
*) print -u2 "Usage: ${0##*/} {start|refresh}" && exit 11 ;;
esac
exit ${SMF_EXIT_OK}
0707010002c6df000041ed00001782000005de000000035598dffb000000000000025c00000c7100000000000000000000001600000000root/lib/svc/manifest 0707010002c6e0000041ed00001782000005de000000025598dffb000000000000025c00000c7100000000000000000000002200000000root/lib/svc/manifest/application 0707010002c6e1000081a400001782000005de000000015598df370000093a0000025c00000c7100000000000000000000003600000000root/lib/svc/manifest/application/texinfo-update2.xml
texinfo documentation directory update (non-system defaults)
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!