debconf-10.5 stable port information

Package: debconf
Version: 1.4.51
Revision: 1219
BuildDepends: html2text, findutils, libgettext3-dev, po-debconf
Depends: dialog (>= 0.9b-20020814-1024), %n-english | %n-i18n, gettext-tools
Distribution: 10.5
Type: perl
Source: mirror:debian:/pool/main/d/debconf/%n_%v.tar.gz
Source-MD5: 4ef37a523a300d2c2e339ffebc5ba18f
SourceDirectory: %n
PatchScript: sed 's|@FINKPREFIX@|%p|g' < %a/%n.patch | patch -p1
TarFilesRename: debconf/debconf$:debconf/debconf.tmp
#UpdatePOD: true
CompileScript: echo "Nothing to see here..." && set -e && /usr/bin/make

InstallScript: <<
#!/bin/sh -ev

export PERL5LIB=.

mkdir -p %i/etc/apt/apt.conf.d
cp debian/apt.conf %i/etc/apt/apt.conf.d/70debconf

/usr/bin/make install prefix=%i install-utils
/usr/bin/make install prefix=%i install-i18n
/usr/bin/make install prefix=%i install-rest

# Ok, move debconf to its correct name
mv %i/bin/debconf.tmp %i/bin/debconf

mkdir -p %d/DEBIAN
po2debconf debian/templates > debian/templates.merged
cp debian/config %d/DEBIAN
cp debian/templates.merged %d/DEBIAN/templates

# Install manpages
mkdir -p %i/share/man/man1
mkdir -p %i/share/man/man3
mkdir -p %i/share/man/man5
mkdir -p %i/share/man/man7
mkdir -p %i/share/man/man8
mkdir -p %i/share/man/fr/man1
mkdir -p %i/share/man/fr/man3
mkdir -p %i/share/man/fr/man5
mkdir -p %i/share/man/fr/man7
mkdir -p %i/share/man/fr/man8
mkdir -p %i/share/man/pt_BR/man1
mkdir -p %i/share/man/pt_BR/man3
mkdir -p %i/share/man/pt_BR/man5
mkdir -p %i/share/man/pt_BR/man7
mkdir -p %i/share/man/pt_BR/man8

mv doc/man/gen/*pt_BR.1* %i/share/man/pt_BR/man1
mv doc/man/*pt_BR.3 %i/share/man/pt_BR/man3
mv doc/man/*pt_BR.5 %i/share/man/pt_BR/man5
mv doc/man/*pt_BR.7 %i/share/man/pt_BR/man7
mv doc/man/gen/*pt_BR.8* %i/share/man/pt_BR/man8
mv doc/man/gen/*fr.1* %i/share/man/fr/man1
mv doc/man/*fr.3 doc/man/gen/*fr.3* %i/share/man/fr/man3
mv doc/man/*fr.5 %i/share/man/fr/man5
mv doc/man/*fr.7 %i/share/man/fr/man7
mv doc/man/gen/*fr.8* %i/share/man/fr/man8
mv doc/man/gen/*.1* %i/share/man/man1
mv doc/man/*.3 doc/man/gen/*.3* %i/share/man/man3
mv doc/man/*.5 %i/share/man/man5
mv doc/man/*.7 %i/share/man/man7
mv doc/man/gen/*.8* %i/share/man/man8
<<

Splitoff: <<
Package: %N-english
Conflicts: %N-i18n
Replaces: %N-i18n
Description: small footprint English-only debconf
DescDetail: <<
This package is an alternative to the debconf-i18n package,
intended for systems that are administered only in English, and
low-footprint systems. If you install this package, debconf will
not work properly in other languages, but you'll save half a
megabyte of disk space.
<<
DocFiles: doc/README debian/README.Debian debian/changelog
<<

Splitoff2: <<
Package: %N-utils
Conflicts: %N-i18n
Replaces: %N-i18n
Depends: debconf
Description: debconf utilities
DescDetail: <<
This package contains some small utilities for debconf developers.
<<
Files: bin/debconf-[glm]* share/man/man1/debconf-[glm]* share/man/pt_BR/man1/debconf-[glm]* share/man/fr/man1/debconf-[glm]*
DocFiles: doc/README debian/README.Debian debian/changelog
<<

Splitoff3: <<
Package: %N-i18n
Depends: locale-gettext-pm588 | text-iconv-pm588
Description: full internationalization support for debconf
DescDetail: <<
This package provides full internationalization for debconf,
including translations into all available languages, support for
using translated debconf templates, and support for proper display
of multibyte character sets.
<<
Files: share/locale share/man/fr/man1 share/man/pt_BR/man1
DocFiles: doc/README debian/README.Debian debian/changelog
<<

Splitoff4: <<
Package: %N-doc
Description: debconf documentation
DescDetail: <<
This package contains lots of additional documentation for
Debconf, including the debconf user's guide, documentation about
using different backend databases via the /etc/debconf.conf file,
and a developer's guide to debconf.
<<
DocFiles: doc/README debian/README.Debian debian/changelog
InstallScript: <<
#!/bin/sh -ev
mkdir -p %i/share/doc/%n
pwd
cp -pR samples %i/share/doc/%n/examples
mv doc/EXAMPLES doc/EXAMPLES.txt
cd doc && cp CREDITS README.LDAP TODO namespace.txt EXAMPLES.txt README.translators debconf.schema html.dsl passthrough.txt %i/share/doc/%n/
<<
Files: share/man/fr/man[137] share/man/man[137] share/man/pt_BR/man[137]
<<

DocFiles: doc/README debian/README.Debian debian/changelog
Description: Package configuration management system
DescDetail: <<
Debconf is a configuration management system for debian/fink
packages. Packages use Debconf to ask questions when they are
installed.
<<

# Fix up broken db's before debconf starts up.

PostInstScript: <<
# configdb splits into passworded and non-passworded parts, before debconf
# starts up. Do so only if the debconf.conf has the new databases in it.
if [ -z "$DEBIAN_HAS_FRONTEND" -a "$1" = configure -a -n "$2" ] && \
dpkg --compare-versions "$2" lt 1.1.0 &&
perl -e 'use Debconf::Db; Debconf::Db->load; for (@ARGV) { exit 1 unless
Debconf::DbDriver->driver($_) }' config passwords; then
# copies in only the passwords, of course
debconf-copydb config passwords
# makes a new config with only non-passwords in it
debconf-copydb config newconfig \
-c Name:newconfig \
-c Driver:File \
-c Reject-Type:password \
-c Filename:%p/var/cache/debconf/newconfig.dat \
-c Mode:644
mv -f %p/var/cache/debconf/newconfig.dat %p/var/cache/debconf/config.dat
fi

echo ""; echo "PLEASE CONFIGURE DEBCONF BY RUNNING THE COMMAND"; echo ""; echo " . %p/share/debconf/confmodule"; echo ""

<<

DescPort: <<
grep -rl /usr/share . | grep -v "(prefx" | xargs perl -pi -e 's|/usr/share|\@FINKPREFIX\@/share|g'
grep -rl "\$(prefix)@FINKPREFIX@" . | xargs perl -pi -e 's|\$\(prefix\)\@FINKPREFIX\@|\$\(prefix\)|g'
grep -r /usr . | grep -v perl #### manually find more stuff
perl -pi -e 's|\$\(prefix\)/usr|\$\(prefix\)|g' Makefile
grep -rl /var . | xargs perl -pi -e 's|\ /var|\ \@FINKPREFIX\@/var|g'
grep -r /var . | grep -v @FINK #### manually catch stuff

NOTE: The debconf has been modified so that it does *not* run its own
configuration during postinstall with the command
. %p/share/debconf/confmodule
because that was interfering with attempts to let fink run unattended
(such as when making a bindist).

The debconf maintainer is welcome to create a new version which runs the
configuration during postinstall, PROVIDED THAT THE POSTINSTALL SCRIPT ALWAYS
EXITS AFTER SOME LENGTH OF TIME IF THE USER GIVES NO INPUT.

<<
License: GPL
Maintainer: Chris Zubrzycki
Homepage: http://packages.debian.org/unstable/admin/debconf.html

debconf-10.5 _unstable_ port information

Package: debconf
Version: 1.4.51
Revision: 1219
BuildDepends: html2text, findutils, libgettext3-dev, po-debconf
Depends: dialog (>= 0.9b-20020814-1024), %n-english | %n-i18n, gettext-tools
Distribution: 10.5
Type: perl
Source: mirror:debian:/pool/main/d/debconf/%n_%v.tar.gz
Source-MD5: 4ef37a523a300d2c2e339ffebc5ba18f
SourceDirectory: %n
PatchScript: sed 's|@FINKPREFIX@|%p|g' < %a/%n.patch | patch -p1
TarFilesRename: debconf/debconf$:debconf/debconf.tmp
#UpdatePOD: true
CompileScript: echo "Nothing to see here..." && set -e && /usr/bin/make

InstallScript: <<
#!/bin/sh -ev

export PERL5LIB=.

mkdir -p %i/etc/apt/apt.conf.d
cp debian/apt.conf %i/etc/apt/apt.conf.d/70debconf

/usr/bin/make install prefix=%i install-utils
/usr/bin/make install prefix=%i install-i18n
/usr/bin/make install prefix=%i install-rest

# Ok, move debconf to its correct name
mv %i/bin/debconf.tmp %i/bin/debconf

mkdir -p %d/DEBIAN
po2debconf debian/templates > debian/templates.merged
cp debian/config %d/DEBIAN
cp debian/templates.merged %d/DEBIAN/templates

# Install manpages
mkdir -p %i/share/man/man1
mkdir -p %i/share/man/man3
mkdir -p %i/share/man/man5
mkdir -p %i/share/man/man7
mkdir -p %i/share/man/man8
mkdir -p %i/share/man/fr/man1
mkdir -p %i/share/man/fr/man3
mkdir -p %i/share/man/fr/man5
mkdir -p %i/share/man/fr/man7
mkdir -p %i/share/man/fr/man8
mkdir -p %i/share/man/pt_BR/man1
mkdir -p %i/share/man/pt_BR/man3
mkdir -p %i/share/man/pt_BR/man5
mkdir -p %i/share/man/pt_BR/man7
mkdir -p %i/share/man/pt_BR/man8

mv doc/man/gen/*pt_BR.1* %i/share/man/pt_BR/man1
mv doc/man/*pt_BR.3 %i/share/man/pt_BR/man3
mv doc/man/*pt_BR.5 %i/share/man/pt_BR/man5
mv doc/man/*pt_BR.7 %i/share/man/pt_BR/man7
mv doc/man/gen/*pt_BR.8* %i/share/man/pt_BR/man8
mv doc/man/gen/*fr.1* %i/share/man/fr/man1
mv doc/man/*fr.3 doc/man/gen/*fr.3* %i/share/man/fr/man3
mv doc/man/*fr.5 %i/share/man/fr/man5
mv doc/man/*fr.7 %i/share/man/fr/man7
mv doc/man/gen/*fr.8* %i/share/man/fr/man8
mv doc/man/gen/*.1* %i/share/man/man1
mv doc/man/*.3 doc/man/gen/*.3* %i/share/man/man3
mv doc/man/*.5 %i/share/man/man5
mv doc/man/*.7 %i/share/man/man7
mv doc/man/gen/*.8* %i/share/man/man8
<<

Splitoff: <<
Package: %N-english
Conflicts: %N-i18n
Replaces: %N-i18n
Description: small footprint English-only debconf
DescDetail: <<
This package is an alternative to the debconf-i18n package,
intended for systems that are administered only in English, and
low-footprint systems. If you install this package, debconf will
not work properly in other languages, but you'll save half a
megabyte of disk space.
<<
DocFiles: doc/README debian/README.Debian debian/changelog
<<

Splitoff2: <<
Package: %N-utils
Conflicts: %N-i18n
Replaces: %N-i18n
Depends: debconf
Description: debconf utilities
DescDetail: <<
This package contains some small utilities for debconf developers.
<<
Files: bin/debconf-[glm]* share/man/man1/debconf-[glm]* share/man/pt_BR/man1/debconf-[glm]* share/man/fr/man1/debconf-[glm]*
DocFiles: doc/README debian/README.Debian debian/changelog
<<

Splitoff3: <<
Package: %N-i18n
Depends: locale-gettext-pm588 | text-iconv-pm588
Description: full internationalization support for debconf
DescDetail: <<
This package provides full internationalization for debconf,
including translations into all available languages, support for
using translated debconf templates, and support for proper display
of multibyte character sets.
<<
Files: share/locale share/man/fr/man1 share/man/pt_BR/man1
DocFiles: doc/README debian/README.Debian debian/changelog
<<

Splitoff4: <<
Package: %N-doc
Description: debconf documentation
DescDetail: <<
This package contains lots of additional documentation for
Debconf, including the debconf user's guide, documentation about
using different backend databases via the /etc/debconf.conf file,
and a developer's guide to debconf.
<<
DocFiles: doc/README debian/README.Debian debian/changelog
InstallScript: <<
#!/bin/sh -ev
mkdir -p %i/share/doc/%n
pwd
cp -pR samples %i/share/doc/%n/examples
mv doc/EXAMPLES doc/EXAMPLES.txt
cd doc && cp CREDITS README.LDAP TODO namespace.txt EXAMPLES.txt README.translators debconf.schema html.dsl passthrough.txt %i/share/doc/%n/
<<
Files: share/man/fr/man[137] share/man/man[137] share/man/pt_BR/man[137]
<<

DocFiles: doc/README debian/README.Debian debian/changelog
Description: Package configuration management system
DescDetail: <<
Debconf is a configuration management system for debian/fink
packages. Packages use Debconf to ask questions when they are
installed.
<<

# Fix up broken db's before debconf starts up.

PostInstScript: <<
# configdb splits into passworded and non-passworded parts, before debconf
# starts up. Do so only if the debconf.conf has the new databases in it.
if [ -z "$DEBIAN_HAS_FRONTEND" -a "$1" = configure -a -n "$2" ] && \
dpkg --compare-versions "$2" lt 1.1.0 &&
perl -e 'use Debconf::Db; Debconf::Db->load; for (@ARGV) { exit 1 unless
Debconf::DbDriver->driver($_) }' config passwords; then
# copies in only the passwords, of course
debconf-copydb config passwords
# makes a new config with only non-passwords in it
debconf-copydb config newconfig \
-c Name:newconfig \
-c Driver:File \
-c Reject-Type:password \
-c Filename:%p/var/cache/debconf/newconfig.dat \
-c Mode:644
mv -f %p/var/cache/debconf/newconfig.dat %p/var/cache/debconf/config.dat
fi

echo ""; echo "PLEASE CONFIGURE DEBCONF BY RUNNING THE COMMAND"; echo ""; echo " . %p/share/debconf/confmodule"; echo ""

<<

DescPort: <<
grep -rl /usr/share . | grep -v "(prefx" | xargs perl -pi -e 's|/usr/share|\@FINKPREFIX\@/share|g'
grep -rl "\$(prefix)@FINKPREFIX@" . | xargs perl -pi -e 's|\$\(prefix\)\@FINKPREFIX\@|\$\(prefix\)|g'
grep -r /usr . | grep -v perl #### manually find more stuff
perl -pi -e 's|\$\(prefix\)/usr|\$\(prefix\)|g' Makefile
grep -rl /var . | xargs perl -pi -e 's|\ /var|\ \@FINKPREFIX\@/var|g'
grep -r /var . | grep -v @FINK #### manually catch stuff

NOTE: The debconf has been modified so that it does *not* run its own
configuration during postinstall with the command
. %p/share/debconf/confmodule
because that was interfering with attempts to let fink run unattended
(such as when making a bindist).

The debconf maintainer is welcome to create a new version which runs the
configuration during postinstall, PROVIDED THAT THE POSTINSTALL SCRIPT ALWAYS
EXITS AFTER SOME LENGTH OF TIME IF THE USER GIVES NO INPUT.

<<
License: GPL
Maintainer: Chris Zubrzycki
Homepage: http://packages.debian.org/unstable/admin/debconf.html