Skip to content

Commit

Permalink
Fixed build if the directory is named perl-MogileFS-Client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Pascha authored and dormando committed Jun 7, 2011
1 parent f9ddc71 commit 57a2d1b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
26 changes: 26 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
libmogilefs-perl (1.14-2) stable; urgency=low

* fixed packaging with perl-MogileFS-Client as base directory

-- Andre Pascha <bender@duese.org> Mon, 10 Jan 2011 16:20:21 +0100

libmogilefs-perl (1.14-1) lenny; urgency=low

* new upstream release

-- root <root@dev1.nbg1.kwick.de> Mon, 10 Jan 2011 13:38:55 +0100

libmogilefs-perl (1.13-1kwick1) lenny; urgency=low

* moved to gibthub version
* debian package version coresponds to github release now

-- root <root@dev1.nbg1.kwick.de> Fri, 08 Oct 2010 17:19:10 +0200

libmogilefs-perl (1.00-1kwick1) lenny; urgency=low

* Non-maintainer upload.
* SVN snapshot of 06 Oct 2010

-- root <root@dev1.nbg1.kwick.de> Thu, 07 Oct 2010 17:43:59 +0200

libmogilefs-perl (1.00-1) unstable; urgency=low

* Initial release
Expand Down
21 changes: 13 additions & 8 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,35 @@
# This is the debhelper compatibility version to use.
# export DH_COMPAT=4

PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
TMP =$(CURDIR)/debian/tmp


build:
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
perl Makefile.PL verbose INSTALLDIRS=vendor
$(MAKE)
touch build-stamp

clean:
dh_testdir
dh_testroot

-$(MAKE) clean
rm -f Makefile.old
dh_clean
dh_clean build-stamp install-stamp

install:
install: build install-stamp
install-stamp:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs

# $(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test
$(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" install
-find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
$(MAKE) pure_install DESTDIR=$(TMP) PREFIX=/usr

touch install-stamp

binary-arch:;
binary-indep: build install
Expand All @@ -40,7 +45,7 @@ binary-indep: build install
dh_installdocs
dh_installman
dh_installchangelogs
dh_install --sourcedir=debian/MogileFS --fail-missing
dh_install --sourcedir=$(TMP) --fail-missing
dh_link
dh_strip
dh_compress
Expand Down

0 comments on commit 57a2d1b

Please sign in to comment.