2001-05-09 12:51:07 +08:00
|
|
|
#! /usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
|
|
|
# Invoke each target with `./debian/rules <target>'. All targets should be
|
|
|
|
# invoked with the package root as the current directory.
|
|
|
|
#
|
|
|
|
# The `binary' target must be run as root, as it needs to install files with
|
|
|
|
# specific ownerships.
|
|
|
|
|
|
|
|
# be paranoid
|
|
|
|
export LC_ALL=C
|
|
|
|
|
|
|
|
DEB_BUILD_ARCH := $(shell dpkg --print-architecture)
|
|
|
|
DEB_BUILD_GNU_TYPE := $(shell ./config.guess)
|
|
|
|
ifndef DEB_HOST_ARCH
|
|
|
|
DEB_HOST_ARCH := ${DEB_BUILD_ARCH}
|
|
|
|
endif
|
|
|
|
DEB_HOST_GNU_CPU := $(patsubst hurd-%,%,$(DEB_HOST_ARCH))
|
|
|
|
ifeq ($(filter-out hurd-%,${DEB_HOST_ARCH}),)
|
|
|
|
DEB_HOST_GNU_SYSTEM := gnu
|
|
|
|
else
|
2002-08-18 09:11:29 +08:00
|
|
|
# FIXME: we won't have always just Hurd and Linux
|
2001-05-09 12:51:07 +08:00
|
|
|
DEB_HOST_GNU_SYSTEM := linux
|
|
|
|
endif
|
|
|
|
DEB_HOST_GNU_TYPE := ${DEB_HOST_GNU_CPU}-${DEB_HOST_GNU_SYSTEM}
|
|
|
|
|
|
|
|
|
|
|
|
# find the version for the main package, from changelog file
|
|
|
|
MAIN_VERSION = $(shell head -1 debian/changelog | cut '-d ' -f 2 | sed 's/[()]//g')
|
2002-08-18 09:11:29 +08:00
|
|
|
# find versions for libraries going into their own packages, from their Makefile.in's,
|
|
|
|
# and sonames for all libs
|
2001-05-09 12:51:07 +08:00
|
|
|
COMERR_VERSION = $(shell grep ELF_VERSION lib/et/Makefile.in | cut '-d ' -f3)
|
2002-08-18 09:11:29 +08:00
|
|
|
COMERR_SOVERSION = $(shell grep ELF_SO_VERSION lib/et/Makefile.in | cut '-d ' -f3)
|
2001-05-09 12:51:07 +08:00
|
|
|
SS_VERSION = $(shell grep ELF_VERSION lib/ss/Makefile.in | cut '-d ' -f3)
|
2002-08-18 09:11:29 +08:00
|
|
|
SS_SOVERSION = $(shell grep ELF_SO_VERSION lib/ss/Makefile.in | cut '-d ' -f3)
|
2001-05-09 12:51:07 +08:00
|
|
|
UUID_VERSION = $(shell grep ELF_VERSION lib/uuid/Makefile.in | cut '-d ' -f3)
|
2002-08-18 09:11:29 +08:00
|
|
|
UUID_SOVERSION = $(shell grep ELF_SO_VERSION lib/uuid/Makefile.in | cut '-d ' -f3)
|
2003-03-17 08:58:25 +08:00
|
|
|
BLKID_VERSION = $(shell grep ELF_VERSION lib/blkid/Makefile.in | cut '-d ' -f3)
|
|
|
|
BLKID_SOVERSION = $(shell grep ELF_SO_VERSION lib/blkid/Makefile.in | cut '-d ' -f3)
|
2002-08-18 09:11:29 +08:00
|
|
|
EXT2FS_SOVERSION = $(shell grep ELF_SO_VERSION lib/ext2fs/Makefile.in | cut '-d ' -f3)
|
|
|
|
E2P_SOVERSION = $(shell grep ELF_SO_VERSION lib/e2p/Makefile.in | cut '-d ' -f3)
|
2001-05-09 12:51:07 +08:00
|
|
|
|
|
|
|
package=e2fsprogs
|
|
|
|
|
|
|
|
topdir=$(shell pwd)
|
|
|
|
debdir=${topdir}/debian
|
2001-06-16 06:54:34 +08:00
|
|
|
tmpdir=${debdir}/tmp
|
2002-10-31 16:44:35 +08:00
|
|
|
udebdir=${debdir}/e2fsprogs-udeb
|
2003-04-10 12:18:56 +08:00
|
|
|
blkidudebdir=${debdir}/libblkid1-udeb
|
2001-06-16 06:54:34 +08:00
|
|
|
maindir=${debdir}/e2fsprogs
|
2001-06-23 11:05:23 +08:00
|
|
|
stdbuilddir=${debdir}/BUILD-STD
|
|
|
|
bfbuilddir=${debdir}/BUILD-BF
|
2002-08-18 09:11:29 +08:00
|
|
|
mipsbuilddir=${debdir}/BUILD-MIPS
|
2001-06-16 06:54:34 +08:00
|
|
|
# docdir=${maindir}/usr/share/doc/${package}
|
2001-05-09 12:51:07 +08:00
|
|
|
MANDIR=/usr/share/man
|
2001-06-16 06:54:34 +08:00
|
|
|
mandir=${tmpdir}${MANDIR}
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2002-10-31 16:44:35 +08:00
|
|
|
UDEB_NAME = $(package)-udeb_$(MAIN_VERSION)_$(DEB_HOST_ARCH).udeb
|
|
|
|
UDEB_PRIORITY = $(shell grep '^Package: e2fsprogs-udeb' debian/control -A 10 | grep ^Priority: | cut -d ' ' -f 2)
|
|
|
|
|
2003-04-10 12:18:56 +08:00
|
|
|
BLKID_UDEB_NAME = libblkid1-udeb_$(MAIN_VERSION)_$(DEB_HOST_ARCH).udeb
|
|
|
|
BLKID_UDEB_PRIORITY = $(shell grep '^Package: libblkid1-udeb' debian/control -A 10 | grep ^Priority: | cut -d ' ' -f 2)
|
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
STAMPSDIR=debian/stampdir
|
|
|
|
CFGSTDSTAMP=${STAMPSDIR}/configure-std-stamp
|
|
|
|
CFGBFSTAMP=${STAMPSDIR}/configure-bf-stamp
|
|
|
|
BUILDSTDSTAMP=${STAMPSDIR}/build-std-stamp
|
|
|
|
BUILDBFSTAMP=${STAMPSDIR}/build-bf-stamp
|
|
|
|
|
2001-05-21 10:48:41 +08:00
|
|
|
CCOPTS = -O2 -fsigned-char
|
2001-05-09 12:51:07 +08:00
|
|
|
LIBC-DEV = libc6-dev
|
|
|
|
|
2001-05-21 10:48:41 +08:00
|
|
|
INSTALL = install
|
|
|
|
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
|
|
|
|
|
|
|
|
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CCOPTS += -g -O1
|
|
|
|
endif
|
|
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
|
|
INSTALL_PROGRAM += -s
|
|
|
|
endif
|
|
|
|
|
2001-05-09 12:51:07 +08:00
|
|
|
ifeq (${DEB_HOST_ARCH},alpha)
|
|
|
|
CCOPTS += -DHAVE_NETINET_IN_H
|
|
|
|
LIBC-DEV = libc6.1-dev
|
|
|
|
else
|
|
|
|
CCOPTS += -D__NO_STRING_INLINES
|
|
|
|
endif
|
|
|
|
|
2001-06-23 11:05:23 +08:00
|
|
|
BF_CCOPTS = -Os -fomit-frame-pointer
|
|
|
|
|
|
|
|
COMMON_CONF_FLAGS = \
|
2003-05-08 22:39:50 +08:00
|
|
|
--enable-elf-shlibs --enable-dynamic-e2fsck --disable-evms \
|
2002-08-18 09:11:29 +08:00
|
|
|
--infodir=/usr/share/info
|
2001-06-23 11:05:23 +08:00
|
|
|
|
2003-05-08 22:39:50 +08:00
|
|
|
STD_CONF_FLAGS = --with-ccopts="${CCOPTS}" --enable-compression
|
2001-06-23 11:05:23 +08:00
|
|
|
|
|
|
|
BF_CONF_FLAGS = --with-ccopts="${CCOPTS} ${BF_CCOPTS}" \
|
2003-05-08 22:39:50 +08:00
|
|
|
--disable-nls --disable-swapfs --disable-imager \
|
2001-06-23 11:05:23 +08:00
|
|
|
--disable-resizer --disable-debugfs
|
|
|
|
|
2002-09-24 13:30:00 +08:00
|
|
|
MIPS_NOPIC_CONF_FLAGS = --with-ccopts="${CCOPTS}" \
|
|
|
|
--disable-nls \
|
2002-08-18 09:11:29 +08:00
|
|
|
--disable-swapfs --disable-imager \
|
2002-10-31 16:44:35 +08:00
|
|
|
--disable-resizer # --disable-debugfs
|
2002-09-24 13:30:00 +08:00
|
|
|
# we can't use those flags at configure time
|
|
|
|
MIPS_CFLAGS= -G 0 -fno-pic -mno-abicalls
|
2002-08-18 09:11:29 +08:00
|
|
|
|
|
|
|
ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
|
|
|
|
ifneq (,$(findstring $(DEB_BUILD_ARCH),mips mipsel))
|
|
|
|
ismips=ismips
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
${CFGSTDSTAMP}:
|
2001-05-09 12:51:07 +08:00
|
|
|
dh_testdir
|
2002-02-24 10:23:26 +08:00
|
|
|
|
2001-06-23 11:05:23 +08:00
|
|
|
mkdir -p ${stdbuilddir}
|
|
|
|
ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
|
2002-08-18 09:11:29 +08:00
|
|
|
cd ${stdbuilddir} && \
|
2001-06-23 11:05:23 +08:00
|
|
|
${topdir}/configure ${COMMON_CONF_FLAGS} ${STD_CONF_FLAGS}
|
|
|
|
else
|
2002-08-18 09:11:29 +08:00
|
|
|
cd ${stdbuilddir} && CC="${DEB_HOST_GNU_TYPE}-gcc" \
|
2001-06-23 11:05:23 +08:00
|
|
|
${topdir}/configure ${COMMON_CONF_FLAGS} ${STD_CONF_FLAGS} \
|
|
|
|
--build=$(DEB_BUILD_GNU_TYPE) $(DEB_HOST_GNU_TYPE)
|
|
|
|
endif
|
2002-08-18 09:11:29 +08:00
|
|
|
|
|
|
|
# specially-built MIPS lib
|
|
|
|
if [ ismips = "${ismips}" ]; then \
|
|
|
|
mkdir -p ${mipsbuilddir} ; \
|
|
|
|
cd ${mipsbuilddir} && \
|
|
|
|
${topdir}/configure ${MIPS_NOPIC_CONF_FLAGS} ; \
|
|
|
|
fi
|
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
mkdir -p ${STAMPSDIR}
|
|
|
|
touch ${CFGSTDSTAMP}
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
${CFGBFSTAMP}:
|
2001-05-09 12:51:07 +08:00
|
|
|
dh_testdir
|
2002-02-24 10:23:26 +08:00
|
|
|
rm -f config.cache
|
|
|
|
|
2001-06-23 11:05:23 +08:00
|
|
|
mkdir -p ${bfbuilddir}
|
2001-05-09 12:51:07 +08:00
|
|
|
ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
|
2002-08-18 09:11:29 +08:00
|
|
|
cd ${bfbuilddir} && \
|
2001-06-23 11:05:23 +08:00
|
|
|
${topdir}/configure ${COMMON_CONF_FLAGS} ${BF_CONF_FLAGS}
|
2001-05-09 12:51:07 +08:00
|
|
|
else
|
2002-08-18 09:11:29 +08:00
|
|
|
cd ${bfbuilddir} && CC="${DEB_HOST_GNU_TYPE}-gcc" \
|
2001-06-23 11:05:23 +08:00
|
|
|
${topdir}/configure ${COMMON_CONF_FLAGS} ${BF_CONF_FLAGS} \
|
2001-05-09 12:51:07 +08:00
|
|
|
--build=$(DEB_BUILD_GNU_TYPE) $(DEB_HOST_GNU_TYPE)
|
|
|
|
endif
|
2002-02-24 10:23:26 +08:00
|
|
|
mkdir -p ${STAMPSDIR}
|
|
|
|
touch ${CFGBFSTAMP}
|
2001-06-23 11:05:23 +08:00
|
|
|
|
|
|
|
build: build-std build-bf
|
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
build-std: ${BUILDSTDSTAMP}
|
|
|
|
${BUILDSTDSTAMP}: ${CFGSTDSTAMP}
|
2001-06-23 11:05:23 +08:00
|
|
|
dh_testdir
|
|
|
|
make -C ${stdbuilddir} all
|
2002-08-18 09:11:29 +08:00
|
|
|
|
2001-06-23 11:05:23 +08:00
|
|
|
( cd ${stdbuilddir}/doc && \
|
|
|
|
texi2html -split_chapter ${topdir}/doc/libext2fs.texinfo )
|
|
|
|
( cd ${stdbuilddir}/lib/et && make com_err.info && \
|
|
|
|
texi2html -split_chapter -expandinfo ${topdir}/lib/et/com_err.texinfo )
|
2002-08-18 09:11:29 +08:00
|
|
|
|
|
|
|
# specially-built MIPS lib
|
|
|
|
if [ ismips = "${ismips}" ]; then \
|
|
|
|
make -C ${mipsbuilddir}/util ; \
|
2002-09-24 13:30:00 +08:00
|
|
|
make -C ${mipsbuilddir} libs \
|
|
|
|
CFLAGS="${CCOPTS} ${MIPS_CFLAGS}" \
|
|
|
|
LIB_SUBDIRS="lib/et lib/ext2fs" ; \
|
2002-08-18 09:11:29 +08:00
|
|
|
fi
|
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
touch ${BUILDSTDSTAMP}
|
2001-06-23 11:05:23 +08:00
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
build-bf: ${BUILDBFSTAMP}
|
|
|
|
${BUILDBFSTAMP}: ${CFGBFSTAMP}
|
2001-06-23 11:05:23 +08:00
|
|
|
dh_testdir
|
2003-05-08 22:39:50 +08:00
|
|
|
make -C ${bfbuilddir} libs
|
|
|
|
make -C ${bfbuilddir}/e2fsck all
|
|
|
|
make -C ${bfbuilddir}/misc all
|
2002-02-24 10:23:26 +08:00
|
|
|
touch ${BUILDBFSTAMP}
|
2001-05-09 12:51:07 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
2002-02-24 10:23:26 +08:00
|
|
|
rm -rf ${STAMPSDIR}
|
2001-06-23 11:05:23 +08:00
|
|
|
-make -C ${stdbuilddir} -i distclean
|
|
|
|
-make -C ${bfbuilddir} -i distclean
|
2002-09-24 13:30:00 +08:00
|
|
|
rm -rf ${stdbuilddir} ${bfbuilddir} ${mipsbuilddir}
|
2001-06-16 06:54:34 +08:00
|
|
|
rm -f doc/libext2fs_*.html lib/et/com_err_*.html debian/*.substvars
|
2001-05-09 12:51:07 +08:00
|
|
|
dh_clean
|
|
|
|
|
2003-05-08 22:39:50 +08:00
|
|
|
install: cleanup install-std
|
2001-06-23 11:05:23 +08:00
|
|
|
|
|
|
|
# This rule allows to factorize the dh_clean between the 2 install rules
|
|
|
|
# This must be launched before install-* (if launching them by hand, for
|
|
|
|
# exemple) or results are unpredictable
|
|
|
|
cleanup:
|
2001-06-16 06:54:34 +08:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
2001-06-23 11:05:23 +08:00
|
|
|
|
|
|
|
install-std: DH_OPTIONS=
|
|
|
|
install-std: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2001-06-16 06:54:34 +08:00
|
|
|
dh_installdirs
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2001-06-16 06:54:34 +08:00
|
|
|
mkdir -p ${tmpdir}/sbin
|
2001-06-23 11:05:23 +08:00
|
|
|
make -C ${stdbuilddir} install DESTDIR=${tmpdir} \
|
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
|
|
|
|
# static libs and .h files
|
|
|
|
make -C ${stdbuilddir} install-libs DESTDIR=${tmpdir} LDCONFIG=true
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2001-05-21 10:48:41 +08:00
|
|
|
# statically-linked fsck
|
2001-06-23 11:05:23 +08:00
|
|
|
${INSTALL_PROGRAM} ${stdbuilddir}/e2fsck/e2fsck.static ${tmpdir}/sbin
|
2001-05-21 10:48:41 +08:00
|
|
|
ln -s e2fsck.8.gz ${mandir}/man8/e2fsck.static.8.gz
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2003-04-10 12:01:19 +08:00
|
|
|
ln -s et/com_err.h ${tmpdir}/usr/include
|
|
|
|
|
2002-09-24 13:30:00 +08:00
|
|
|
dh_movefiles
|
|
|
|
test -z `find ${tmpdir} -type f`
|
|
|
|
|
2002-08-18 09:11:29 +08:00
|
|
|
# specially-built MIPS lib
|
|
|
|
if [ ismips = "${ismips}" ]; then \
|
|
|
|
cp ${mipsbuilddir}/lib/libext2fs.a \
|
|
|
|
${debdir}/e2fslibs-dev/usr/lib/libext2fs-nopic.a ; \
|
|
|
|
fi
|
|
|
|
|
2003-05-08 22:39:50 +08:00
|
|
|
install-udeb: DH_OPTIONS=
|
|
|
|
install-udeb: build
|
2001-06-23 11:05:23 +08:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
|
2003-05-08 22:39:50 +08:00
|
|
|
make -C ${bfbuilddir} install-shlibs-libs-recursive DESTDIR=${udebdir} \
|
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
|
|
|
|
make -C ${bfbuilddir}/e2fsck install DESTDIR=${udebdir} \
|
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
|
|
|
|
make -C ${bfbuilddir}/misc install DESTDIR=${udebdir} \
|
2001-06-23 11:05:23 +08:00
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true
|
2002-09-24 13:30:00 +08:00
|
|
|
|
2003-05-08 22:39:50 +08:00
|
|
|
rm -rf ${udebdir}/usr
|
2003-07-13 04:28:09 +08:00
|
|
|
find ${udebdir}/sbin -type f -a ! -name e2fsck \
|
|
|
|
-a ! -name mke2fs -print | xargs rm
|
|
|
|
|
|
|
|
(cd ${udebdir}/sbin; ln -s e2fsck fsck.ext2 ; \
|
|
|
|
ln -s e2fsck fsck.ext3 ; ln -s mke2fs mkfs.ext2 ; \
|
|
|
|
ln -s mke2fs mkfs.ext3)
|
2002-10-31 16:44:35 +08:00
|
|
|
|
2003-04-10 12:18:56 +08:00
|
|
|
mkdir -p ${blkidudebdir}/lib
|
|
|
|
mv ${udebdir}/lib/libblkid.* ${blkidudebdir}/lib
|
2001-06-23 11:05:23 +08:00
|
|
|
|
2001-06-16 06:54:34 +08:00
|
|
|
binary-indep:
|
|
|
|
# no arch-independant debs.
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2001-06-16 06:54:34 +08:00
|
|
|
binary-arch: DH_OPTIONS= -a
|
2002-10-31 16:44:35 +08:00
|
|
|
binary-arch: install install-udeb
|
2001-06-16 06:54:34 +08:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
# lintian overrides
|
|
|
|
for i in $$(cd debian && echo *.lintian-overrides); do \
|
|
|
|
pkg=$${i%.lintian-overrides} ;\
|
|
|
|
install -m644 -D -p debian/$$i ${debdir}/$${pkg}/usr/share/lintian/overrides/$${pkg} ;\
|
|
|
|
done
|
2001-06-23 11:05:23 +08:00
|
|
|
|
2002-08-18 09:11:29 +08:00
|
|
|
# mkinitrd script
|
2002-10-31 16:44:35 +08:00
|
|
|
mkdir -p debian/e2fsprogs/etc/mkinitrd/scripts
|
|
|
|
install -m755 debian/e2fsprogs.mkinitrd \
|
|
|
|
debian/e2fsprogs/etc/mkinitrd/scripts/e2fsprogs
|
2002-08-18 09:11:29 +08:00
|
|
|
|
2001-06-16 06:54:34 +08:00
|
|
|
# symlinks to prepare dh_installdocs run
|
2001-05-21 10:48:41 +08:00
|
|
|
mkdir -p ${debdir}/e2fsck-static/usr/share/doc/
|
|
|
|
ln -sf e2fsprogs ${debdir}/e2fsck-static/usr/share/doc/e2fsck-static
|
|
|
|
|
2003-07-25 19:03:00 +08:00
|
|
|
mkdir -p ${debdir}/libblkid${BLKID_SOVERSION}/usr/share/doc/libblkid${BLKID_SOVERSION}
|
|
|
|
mkdir -p ${debdir}/libblkid-dev/usr/share/doc
|
|
|
|
ln -sf libblkid${BLKID_SOVERSION} ${debdir}/libblkid-dev/usr/share/doc/libblkid-dev
|
2001-06-16 06:54:34 +08:00
|
|
|
|
2003-07-25 19:03:00 +08:00
|
|
|
mkdir -p ${debdir}/libss${SS_SOVERSION}/usr/share/doc/libss${SS_SOVERSION}
|
|
|
|
mkdir -p ${debdir}/ss-dev/usr/share/doc
|
|
|
|
ln -sf libss${SS_SOVERSION} ${debdir}/ss-dev/usr/share/doc/ss-dev
|
2001-06-16 06:54:34 +08:00
|
|
|
|
2003-07-25 19:03:00 +08:00
|
|
|
mkdir -p ${debdir}/libcomerr${COMERR_SOVERSION}/usr/share/doc/libcomerr${COMERR_SOVERSION}
|
|
|
|
mkdir -p ${debdir}/comerr-dev/usr/share/doc
|
2002-08-18 09:11:29 +08:00
|
|
|
ln -sf libcomerr${COMERR_SOVERSION} ${debdir}/comerr-dev/usr/share/doc/comerr-dev
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2003-07-25 19:03:00 +08:00
|
|
|
mkdir -p ${debdir}/libuuid${UUID_SOVERSION}/usr/share/doc/libuuid${UUID_SOVERSION}
|
|
|
|
mkdir -p ${debdir}/uuid-dev/usr/share/doc
|
|
|
|
ln -sf libuuid${UUID_SOVERSION} ${debdir}/uuid-dev/usr/share/doc/uuid-dev
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2003-07-25 19:03:00 +08:00
|
|
|
mkdir -p ${debdir}/e2fslibs/usr/share/doc/e2fslibs
|
|
|
|
mkdir -p ${debdir}/e2fslibs-dev/usr/share/doc
|
|
|
|
ln -sf e2fslibs ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs-dev
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2003-03-17 08:58:25 +08:00
|
|
|
install -m 644 debian/libblkid.copyright \
|
|
|
|
${debdir}/libblkid${BLKID_SOVERSION}/usr/share/doc/libblkid${BLKID_SOVERSION}/copyright
|
|
|
|
|
2003-04-10 12:18:56 +08:00
|
|
|
dh_installdocs -Ne2fsprogs-udeb -Nlibblkid1-udeb
|
2001-06-16 06:54:34 +08:00
|
|
|
|
2001-05-09 12:51:07 +08:00
|
|
|
# HTML docs
|
2003-07-25 19:03:00 +08:00
|
|
|
install -d ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/html-info/
|
2001-06-23 11:05:23 +08:00
|
|
|
install -p ${stdbuilddir}/doc/libext2fs_*.html \
|
2003-07-25 19:03:00 +08:00
|
|
|
${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/html-info/
|
|
|
|
install -d ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/html-info/
|
2001-06-23 11:05:23 +08:00
|
|
|
install -p ${stdbuilddir}/lib/et/com_err_*.html \
|
2003-07-25 19:03:00 +08:00
|
|
|
${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/html-info/
|
2001-05-09 12:51:07 +08:00
|
|
|
|
|
|
|
# texinfo docs
|
2003-07-25 19:03:00 +08:00
|
|
|
mkdir -p ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}
|
2001-05-09 12:51:07 +08:00
|
|
|
install -p ${topdir}/doc/libext2fs.texinfo \
|
2003-07-25 19:03:00 +08:00
|
|
|
${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/libext2fs.texi
|
2001-05-09 12:51:07 +08:00
|
|
|
install -p ${topdir}/lib/et/com_err.texinfo \
|
2002-08-18 09:11:29 +08:00
|
|
|
${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/com_err.texi
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2003-07-25 19:03:00 +08:00
|
|
|
install -d ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/examples
|
|
|
|
install -p -m 0644 lib/ss/ss_err.et \
|
|
|
|
${stdbuilddir}/lib/ext2fs/ext2_err.et \
|
|
|
|
${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/examples
|
|
|
|
install -d ${debdir}/ss-dev/usr/share/doc/libss${SS_SOVERSION}/examples
|
|
|
|
install -p -m 0644 debugfs/debug_cmds.ct \
|
|
|
|
${debdir}/ss-dev/usr/share/doc/libss${SS_SOVERSION}/examples
|
|
|
|
|
|
|
|
install -d ${debdir}/uuid-dev/usr/share/doc/libuuid${UUID_SOVERSION}
|
|
|
|
install -p -m 0644 doc/draft-leach-uuids-guids-01.txt \
|
|
|
|
${debdir}/uuid-dev/usr/share/doc/libuuid${UUID_SOVERSION}
|
2001-06-16 06:54:34 +08:00
|
|
|
|
2002-02-24 10:23:26 +08:00
|
|
|
dh_installinfo -pcomerr-dev ${stdbuilddir}/lib/et/com_err.info
|
2001-06-23 11:05:23 +08:00
|
|
|
dh_installinfo -pe2fslibs-dev ${stdbuilddir}/doc/libext2fs.info
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2003-07-23 21:55:39 +08:00
|
|
|
DH_OPTIONS= dh_installchangelogs -pe2fsprogs -plibblkid${BLKID_SOVERSION}
|
2003-07-25 19:03:00 +08:00
|
|
|
DH_OPTIONS= dh_installchangelogs -pe2fsprogs -plibcomerr${COMERR_SOVERSION}
|
|
|
|
DH_OPTIONS= dh_installchangelogs -pe2fsprogs -plibss${SS_SOVERSION}
|
|
|
|
DH_OPTIONS= dh_installchangelogs -pe2fsprogs -plibuuid${UUID_SOVERSION}
|
|
|
|
DH_OPTIONS= dh_installchangelogs -pe2fsprogs -pe2fslibs
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2001-06-16 06:54:34 +08:00
|
|
|
dh_strip
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2001-06-16 06:54:34 +08:00
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2003-07-25 19:03:00 +08:00
|
|
|
dh_makeshlibs
|
|
|
|
dh_makeshlibs -plibcomerr${COMERR_SOVERSION} \
|
|
|
|
-V 'libcomerr2 (>= 1.33-3)'
|
2003-03-17 08:58:25 +08:00
|
|
|
|
2001-06-16 06:54:34 +08:00
|
|
|
dh_installdeb
|
2001-06-23 11:05:23 +08:00
|
|
|
dh_shlibdeps -l${stdbuilddir}/lib
|
2003-07-25 19:03:00 +08:00
|
|
|
dh_shlibdeps -pe2fsprogs -l${stdbuilddir}/lib \
|
|
|
|
-u"-Ldebian/e2fsprogs.shlibs.local"
|
2001-06-16 06:54:34 +08:00
|
|
|
|
2003-07-25 19:03:00 +08:00
|
|
|
dh_gencontrol -Ncomerr-dev -Nss-dev -Nuuid-dev \
|
|
|
|
-Ne2fsprogs-udeb -Nlibblkid1-udeb
|
2001-06-16 06:54:34 +08:00
|
|
|
DH_OPTIONS= dh_gencontrol -pcomerr-dev \
|
2001-05-09 12:51:07 +08:00
|
|
|
-u '-v${COMERR_VERSION}-${MAIN_VERSION}'
|
2001-06-16 06:54:34 +08:00
|
|
|
DH_OPTIONS= dh_gencontrol -pss-dev \
|
2001-05-09 12:51:07 +08:00
|
|
|
-u '-v${SS_VERSION}-${MAIN_VERSION}'
|
2001-06-16 06:54:34 +08:00
|
|
|
DH_OPTIONS= dh_gencontrol -puuid-dev \
|
2001-05-09 12:51:07 +08:00
|
|
|
-u '-v${UUID_VERSION}-${MAIN_VERSION}'
|
2001-06-16 06:54:34 +08:00
|
|
|
|
2003-04-10 12:18:56 +08:00
|
|
|
dh_md5sums -Ne2fsprogs-udeb -Nlibblkid1-udeb
|
|
|
|
dh_builddeb -Ne2fsprogs-udeb -Nlibblkid1-udeb
|
2002-10-31 16:44:35 +08:00
|
|
|
|
|
|
|
# udeb stuff
|
|
|
|
dh_gencontrol -pe2fsprogs-udeb -- -fdebian/files~
|
|
|
|
dpkg-distaddfile $(UDEB_NAME) debian-installer $(UDEB_PRIORITY)
|
|
|
|
dh_builddeb -pe2fsprogs-udeb --filename=$(UDEB_NAME)
|
2001-05-09 12:51:07 +08:00
|
|
|
|
2003-04-10 12:18:56 +08:00
|
|
|
dh_gencontrol -plibblkid1-udeb -- -fdebian/files~
|
|
|
|
dpkg-distaddfile $(BLKID_UDEB_NAME) debian-installer $(BLKID_UDEB_PRIORITY)
|
|
|
|
dh_builddeb -plibblkid1-udeb --filename=$(BLKID_UDEB_NAME)
|
|
|
|
|
2001-05-09 12:51:07 +08:00
|
|
|
binary: binary-indep binary-arch
|
|
|
|
|
|
|
|
.PHONY: binary binary-arch binary-indep clean checkroot
|