привет all.
вот make файл с правилами /debian/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
SHELL = /bin/bash
topdir = $(shell pwd)
debdir = ${topdir}/debian
tmpdir = ${debdir}/tmp
package = $(shell dh_listpackages)
prefix = /
docdir = /usr/share/doc/$(package)
confdir = $(prefix)/etc/
#
File1 = file.tar.bz2
Source1 = url/$(File1)
wget: debian/wget-stamp
debian/wget-stamp:
dh_testdir
dh_prep
dh_installdirs
wget -q $(Source1)
md5sum --check md5sum
touch $@
clean:
-rm -f debian/wget-stamp
dh_testdir
dh_testroot
dh_clean
install: wget
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Put file in proper place.
ln $(File1) debian/$(package)/var/lib/v1/$(File1) || cp $(File1) debian/$(package)/var/lib/v1/$(File1)
# Build architecture-independent files here.
binary-indep: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: install
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
Теперь мне необходимо в postinst осущеcтвить проверку первого аргумента, т.е в данном случае это configure?.
и:
#DEBHELPER#
if [ "$1" = "configure" ] ; then
Заранее благодарен.