From 49a2ed154e210e3e45eef02079f9702e8ef8817c Mon Sep 17 00:00:00 2001 From: miwi Date: Fri, 8 Feb 2013 09:08:19 +0000 Subject: A collection of programs that can be used in a debian/rules file to automate common tasks related to building debian packages. Programs are included to install various files into your package, compress files, fix file permissions, integrate your package with the debian menu system, debconf, doc-base, etc. Most debian packages use debhelper as part of their build process. WWW: http://joeyh.name/code/debhelper/ PR: ports/175915 Submitted by: Gea-Suan Lin --- sysutils/Makefile | 1 + sysutils/debhelper/Makefile | 18 ++++++++++ sysutils/debhelper/distinfo | 2 ++ sysutils/debhelper/files/patch-Makefile | 26 ++++++++++++++ sysutils/debhelper/pkg-descr | 7 ++++ sysutils/debhelper/pkg-plist | 62 +++++++++++++++++++++++++++++++++ 6 files changed, 116 insertions(+) create mode 100644 sysutils/debhelper/Makefile create mode 100644 sysutils/debhelper/distinfo create mode 100644 sysutils/debhelper/files/patch-Makefile create mode 100644 sysutils/debhelper/pkg-descr create mode 100644 sysutils/debhelper/pkg-plist (limited to 'sysutils') diff --git a/sysutils/Makefile b/sysutils/Makefile index eb707bd14b96..c3ec8fd021b3 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -163,6 +163,7 @@ SUBDIR += dcfldd SUBDIR += dd_rescue SUBDIR += ddrescue + SUBDIR += debhelper SUBDIR += debootstrap SUBDIR += decomment SUBDIR += deltup diff --git a/sysutils/debhelper/Makefile b/sysutils/debhelper/Makefile new file mode 100644 index 000000000000..2935c44ee943 --- /dev/null +++ b/sysutils/debhelper/Makefile @@ -0,0 +1,18 @@ +# Created by: Gea-Suan Lin +# $FreeBSD$ + +PORTNAME= debhelper +PORTVERSION= 9.20120909 +CATEGORIES= sysutils +MASTER_SITES= DEBIAN +DISTFILES= ${PORTNAME}_${PORTVERSION}${EXTRACT_SUFX} + +MAINTAINER= gslin@gslin.org +COMMENT= Helper programs for debian/rules + +MAKE_ENV+= SITE_PERL_REL=${SITE_PERL_REL} +NO_BUILD= yes +USE_PERL5= yes +WRKSRC= ${WRKDIR}/${PORTNAME} + +.include diff --git a/sysutils/debhelper/distinfo b/sysutils/debhelper/distinfo new file mode 100644 index 000000000000..9e97985ac10a --- /dev/null +++ b/sysutils/debhelper/distinfo @@ -0,0 +1,2 @@ +SHA256 (debhelper_9.20120909.tar.gz) = fabcdb9c41975ea0a1ccc66d6e065e424ed7a2119f6f1a6f7bfb7d06701370af +SIZE (debhelper_9.20120909.tar.gz) = 464785 diff --git a/sysutils/debhelper/files/patch-Makefile b/sysutils/debhelper/files/patch-Makefile new file mode 100644 index 000000000000..44cc9bfb8f90 --- /dev/null +++ b/sysutils/debhelper/files/patch-Makefile @@ -0,0 +1,26 @@ +--- Makefile.orig 2012-08-26 22:22:58.000000000 +0800 ++++ Makefile 2012-08-26 22:23:51.000000000 +0800 +@@ -78,15 +78,14 @@ + done; + + install: +- install -d $(DESTDIR)/usr/bin \ +- $(DESTDIR)/usr/share/debhelper/autoscripts \ +- $(DESTDIR)$(PERLLIBDIR)/Sequence \ +- $(DESTDIR)$(PERLLIBDIR)/Buildsystem +- install dh $(COMMANDS) $(DESTDIR)/usr/bin +- install -m 0644 autoscripts/* $(DESTDIR)/usr/share/debhelper/autoscripts +- install -m 0644 Debian/Debhelper/*.pm $(DESTDIR)$(PERLLIBDIR) +- install -m 0644 Debian/Debhelper/Sequence/*.pm $(DESTDIR)$(PERLLIBDIR)/Sequence +- install -m 0644 Debian/Debhelper/Buildsystem/*.pm $(DESTDIR)$(PERLLIBDIR)/Buildsystem ++ install -d \ ++ $(PREFIX)/${SITE_PERL_REL}/Debian/Debhelper/Sequence \ ++ $(PREFIX)/${SITE_PERL_REL}/Debian/Debhelper/Buildsystem ++ install dh $(COMMANDS) $(PREFIX)/bin ++ install -m 0644 autoscripts/* $(PREFIX)/bin ++ install -m 0644 Debian/Debhelper/*.pm $(PREFIX)/$(SITE_PERL_REL)/Debian/Debhelper ++ install -m 0644 Debian/Debhelper/Sequence/*.pm $(PREFIX)/$(SITE_PERL_REL)/Debian/Debhelper/Sequence ++ install -m 0644 Debian/Debhelper/Buildsystem/*.pm $(PREFIX)/$(SITE_PERL_REL)/Debian/Debhelper/Buildsystem + + test: version + ./run perl -MTest::Harness -e 'runtests grep { ! /CVS/ && ! /\.svn/ && -f && -x } @ARGV' t/* t/buildsystems/* diff --git a/sysutils/debhelper/pkg-descr b/sysutils/debhelper/pkg-descr new file mode 100644 index 000000000000..f942b0e45ccf --- /dev/null +++ b/sysutils/debhelper/pkg-descr @@ -0,0 +1,7 @@ +A collection of programs that can be used in a debian/rules file to automate +common tasks related to building debian packages. Programs are included to +install various files into your package, compress files, fix file permissions, +integrate your package with the debian menu system, debconf, doc-base, etc. +Most debian packages use debhelper as part of their build process. + +WWW: http://joeyh.name/code/debhelper/ diff --git a/sysutils/debhelper/pkg-plist b/sysutils/debhelper/pkg-plist new file mode 100644 index 000000000000..5f52338d4fc7 --- /dev/null +++ b/sysutils/debhelper/pkg-plist @@ -0,0 +1,62 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/Debian/Debhelper/Buildsystem.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/ant.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/autoconf.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/cmake.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/makefile.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/perl_build.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/perl_makemaker.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/python_distutils.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/qmake.pm +%%SITE_PERL%%/Debian/Debhelper/Buildsystem/qmake_qt4.pm +%%SITE_PERL%%/Debian/Debhelper/Dh_Buildsystems.pm +%%SITE_PERL%%/Debian/Debhelper/Dh_Getopt.pm +%%SITE_PERL%%/Debian/Debhelper/Dh_Lib.pm +%%SITE_PERL%%/Debian/Debhelper/Sequence/python_support.pm +bin/dh +bin/maintscript-helper +bin/postinst-emacsen +bin/postinst-icons +bin/postinst-init +bin/postinst-init-nostart +bin/postinst-init-restart +bin/postinst-makeshlibs +bin/postinst-menu +bin/postinst-menu-method +bin/postinst-mime +bin/postinst-modules +bin/postinst-moveconffile +bin/postinst-python +bin/postinst-sharedmimeinfo +bin/postinst-suid +bin/postinst-ucf +bin/postinst-usrlocal +bin/postinst-wm +bin/postinst-wm-noman +bin/postinst-xfonts +bin/postrm-debconf +bin/postrm-icons +bin/postrm-init +bin/postrm-makeshlibs +bin/postrm-menu +bin/postrm-menu-method +bin/postrm-mime +bin/postrm-modules +bin/postrm-sgmlcatalog +bin/postrm-sharedmimeinfo +bin/postrm-suid +bin/postrm-ucf +bin/postrm-xfonts +bin/preinst-moveconffile +bin/preinst-sgmlcatalog +bin/prerm-emacsen +bin/prerm-init +bin/prerm-init-norestart +bin/prerm-python +bin/prerm-usrlocal +bin/prerm-wm +@dirrmtry %%SITE_PERL%%/Debian/Debhelper/Sequence +@dirrmtry %%SITE_PERL%%/Debian/Debhelper/Buildsystem +@dirrmtry %%SITE_PERL%%/Debian/Debhelper +@dirrmtry %%SITE_PERL%%/Debian +@dirrmtry %%DATADIR%% -- cgit