[Dbconfig-common-changes] dbconfig-common/examples/dh_make_template config.ex, NONE, 1.1.2.1 control, NONE, 1.1.2.1 dirs, NONE, 1.1.2.1 postinst.ex, NONE, 1.1.2.1 postrm.ex, NONE, 1.1.2.1 prerm.ex, NONE, 1.1.2.1 rules, NONE, 1.1.2.1

xerakko-guest at haydn.debian.org xerakko-guest at haydn.debian.org
Fri Dec 30 09:07:24 CET 2005


Update of /cvsroot/dbconfig-common/dbconfig-common/examples/dh_make_template
In directory haydn:/tmp/cvs-serv30440

Added Files:
      Tag: ORACLE
	config.ex control dirs postinst.ex postrm.ex prerm.ex rules 
Log Message:

dh_make template files for dbconfig-common


--- NEW FILE: config.ex ---
#!/bin/sh

set -e
. /usr/share/debconf/confmodule
# dbc_dbtypes="mysql, pgsql, oracle"
. /usr/share/dbconfig-common/dpkg/config.mysql
dbc_go #PACKAGE# $@
#DEBHELPER#


--- NEW FILE: control ---
Source: #PACKAGE#
Section: unknown
Priority: optional
Maintainer: #USERNAME# <#EMAIL#>
Build-Depends: #BUILD_DEPS#
Standards-Version: #POLICY#

Package: #PACKAGE#
Architecture: any
Depends: dbconfig-common, ${shlibs:Depends}, ${misc:Depends}
Description: <insert up to 60 chars description>
 <insert long description, indented with spaces>

--- NEW FILE: dirs ---
usr/bin
usr/sbin
usr/share/dbconfig-common/data/#PACKAGE#/install
usr/share/dbconfig-common/data/#PACKAGE#/upgrade
etc/#PACKAGE#

--- NEW FILE: postinst.ex ---
#! /bin/sh
# postinst script for #PACKAGE#
#
# see: dh_installdeb(1)

set -e

# Database work
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst.mysql
#dbc_generate_include=php:/etc/#PACKAGE#/debian-db.php
#dbc_generate_include_owner="root:www-data"
#dbc_generate_include_perms='640'
dbc_go #PACKAGE# $@

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0



--- NEW FILE: postrm.ex ---
#! /bin/sh
# postrm script for #PACKAGE#
#
# see: dh_installdeb(1)

set -e

. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postrm.mysql
dbc_go  #PACKAGE# $@

#if [ "$1" = "purge" ]; then
#        rm -f /etc/#PACKAGE#/debian-db.php
#	fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

--- NEW FILE: prerm.ex ---
#! /bin/sh
# prerm script for #PACKAGE#
#
# see: dh_installdeb(1)

set -e

. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/prerm.mysql
dbc_go #PACKAGE# $@
    

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0



--- NEW FILE: rules ---
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


#DPKG_ARCH#

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif

#CONFIGURE#

build: build-stamp

build-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS#
	dh_testdir

	# Add here commands to compile the package.
	$(MAKE)
	#docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp #CONFIGURE_STAMP#

	# Add here commands to clean up after the build process.
	-#CLEAN#

	dh_clean#PRESERVE#

install: build
	dh_testdir
	dh_testroot
	dh_clean -k#PRESERVE#
	dh_installdirs

	# Add here commands to install the package into debian/#PACKAGE#.
	#INSTALL#
        #
        # #PACKAGE# needs the sql skeleton here:
        #
        install -o root -g root -m 0644 install-files/#PACKAGE#.sql debian/#PACKAGE#/usr/share/dbconfig-common/data/#PACKAGE#/install/mysql
        # and the upgrade file
        install -o root -g root -m 0644 upgrade-files/#PACKAGE#-upgrade.sql debian/#PACKAGE#/usr/share/dbconfig-common/data/#PACKAGE#/upgrade/mysql/#VERSION#

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs #CHANGELOGS#
	dh_installdocs
	dh_installexamples
#	dh_install
#	dh_installmenu
	dh_installdebconf	
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_installinit
#	dh_installcron
#	dh_installinfo
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
#	dh_perl
#	dh_python
#	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE#




More information about the Dbconfig-common-changes mailing list