* Merged debian rules with official debian svn.

git-svn-id: trunk@16729 -
This commit is contained in:
mazen 2008-09-25 11:06:43 +00:00
parent f838fba734
commit cdc2eb9d76
2 changed files with 58 additions and 7 deletions

49
debian/changelog vendored
View File

@ -4,6 +4,55 @@ lazarus (0.9.25-0) unstable; urgency=low
-- Mazen Neifer <mazen@freepascal.org> Fri, 09 May 2008 00:58:40 +0200
lazarus (0.9.24-0-13) unstable; urgency=low
* Fixed linitian error due to initial sources containing debian/files.
* Fixed find expression precedence in clean target.
-- Mazen Neifer <mazen@freepascal.org> Mon, 31 Aug 2008 16:29:00 +0200
lazarus (0.9.24-0-12) unstable; urgency=low
* User is now able to rebuild the IDE to add his own components.
(Closes: #490162)
* Removed false warning on read only sources when recompiling end used local
copy.
-- Mazen Neifer <mazen@freepascal.org> Mon, 25 Aug 2008 17:42:00 +0200
lazarus (0.9.24-0-11) unstable; urgency=low
* Add patch 07_sh_using_tmp.patch.dpatch to avoid /tmp file vulnerabilities.
(Closes: #496377)
-- Torsten Werner <twerner@debian.org> Sun, 24 Aug 2008 22:23:18 +0200
lazarus (0.9.24-0-10) unstable; urgency=low
[ Mazen Neifer ]
* Fixed clean target.
* Added system wide default configuration file.
* Fixed comments in dpatch files.
* Fixed compilation error with FPC 2.2.2.
[ Torsten Werner ]
* Built against fpc 2.2.2. (Closes: #495688)
-- Torsten Werner <twerner@debian.org> Wed, 20 Aug 2008 01:03:50 +0200
lazarus (0.9.24-0-9) unstable; urgency=low
[ Torsten Werner ]
* Fix email address of Mazen in debian/control.
[ Mazen Neifer ]
* Adapted FPCDIR default value to new fpc-source directory.
(Closes: #484195)
* Added support of multiple FPC installed releases.
* Added verbose option to dpatch.
-- Mazen Neifer <mazen@freepascal.org> Thu, 29 May 2008 01:05:28 +0200
lazarus (0.9.24-0-8) unstable; urgency=low
[ Mazen Neifer ]

16
debian/rules vendored
View File

@ -13,7 +13,7 @@ FPCVER=$(shell ${FPC} -iV)
CURDIR:=$(shell pwd)
BUILD_DIR=$(CURDIR)/debian/build
INSTALL_DIR=$(CURDIR)/debian/tmp
DOC_DIR=$(INSTALL_DIR)/usr/share/doc
DOC_DIR=${INSTALL_DIR}/usr/share/doc/lazarus
# Get utils
ifndef MKDIR
MKDIR=mkdir -p
@ -48,11 +48,11 @@ clean-patched:
rm -f build-doc-stamp install-doc-stamp
rm -f build-indep-stamp install-indep-stamp
rm -f debian-files-stamp
rm -f debian/*.files debian/*.docs debian/*.examples debian/*.postinst debian/*.postrm
rm -f debian/files debian/docs debian/dirs debian/*.files debian/*.docs debian/*.examples debian/*.postinst debian/*.postrm
rm -f lazarus startlazarus lazbuild
$(MAKE) distclean
$(MAKE) distclean LCL_PLATFORM=gtk2
-(find -name '*.a' -or -name '*.o' -or -name '*.ppu' | xargs rm)
find '(' -name '*.a' -or -name '*.o' -or -name '*.so' -or -name '*.ppu' ')' -exec rm -f '{}' ';'
dh_clean
patch: patch-stamp
@ -106,18 +106,20 @@ install-arch-stamp: build-arch-stamp debian-files-stamp
dh_testroot
dh_clean -k
dh_installdirs
# copy lazarus to /usr/lib
# create all necessary directories
install -d $(INSTALL_DIR)/usr/bin
install -d $(INSTALL_DIR)/usr/lib/lazarus
# Install the IDE & its accessories
cp -Rfpl -t $(INSTALL_DIR)/usr/lib/lazarus \
lazarus lazbuild startlazarus \
$(CURDIR)/languages
# Install the library files
find -name '*.ppu' -or -name '*.[oa]' -or -name '*.so*' | xargs cp -Rfpl --parents -t $(INSTALL_DIR)/usr/lib/lazarus
# copy icons and menu entries for the GNOME menu
install -d $(INSTALL_DIR)/usr/share/pixmaps
install -d $(INSTALL_DIR)/usr/share/applications
convert -geometry 32x32 $(CURDIR)/images/ide_icon48x48.png $(INSTALL_DIR)/usr/share/pixmaps/lazarus.xpm
chmod 644 $(INSTALL_DIR)/usr/share/pixmaps/lazarus.xpm
chmod 644 $(INSTALL_DIR)/usr/share/pixmaps/*.xpm
install -m 644 $(CURDIR)/install/lazarus.desktop $(INSTALL_DIR)/usr/share/applications/lazarus.desktop
# Install man pages
$(MAKE) -C install/man installman $(INSTALLOPTS) INSTALL_PREFIX=$(INSTALL_DIR)/usr/share
@ -155,8 +157,8 @@ install-doc-stamp: build-doc-stamp debian-files-stamp
dh_testdir
dh_testroot
dh_clean -k
install -d $(INSTALL_DIR)/usr/share/doc/lazarus
cp -Rfpl -t $(INSTALL_DIR)/usr/share/doc/lazarus docs/*
install -d ${DOC_DIR}
cp -Rfpl -t ${DOC_DIR} docs/*
touch install-doc-stamp
###################