Navigation
Artikel
Stuff
RSS Feeds
|
Tutorials - Debian PaketbauSprachenübersicht/Betriebssysteme/Linux/Debian Keywords: debian package paket build bau howto tutorial guide InhaltsverzeichnisVorwort Top
Vorbereitung Top
Code: aptitude install build-essential dh-make mkdir ~/debbuild cd ~/debbuild
Code: wget http://www.consol.de/fileadmin/opensource/Nagios/check_logfiles-3.0.tar.gz mkdir check-logfiles-3.0 # Name des Pakets und Versionsnummer als Ordnername, Underscore nicht erlaubt cd check-logfiles-3.0 dh_make -f ../check_logfiles-3.0.tar.gz -s -e j.g@example.com -r -c gpl
Code: # ls -la debian/ total 44 drwxr-xr-x 3 julian julian 4096 2009-06-29 23:12 . drwxr-xr-x 5 julian julian 4096 2009-06-29 23:07 .. -rw-r--r-- 1 julian julian 197 2009-06-29 23:07 changelog -rw-r--r-- 1 julian julian 2 2009-06-29 23:07 compat -rw-r--r-- 1 julian julian 424 2009-06-29 23:07 control -rw-r--r-- 1 julian julian 1410 2009-06-29 23:07 copyright -rw-r--r-- 1 julian julian 23 2009-06-29 23:07 dirs -rwxr-xr-x 1 julian julian 1915 2009-06-29 23:07 rules
changelog: check-logfiles (3.0-1) unstable; urgency=low * Initial release -- Julian Golderer <j.g@example.com> Mon, 22 Jun 2009 22:45:32 +0200
compat: 7
control: Source: check-logfiles Section: unknown Priority: extra Maintainer: Julian Golderer <j.g@example.com> Build-Depends: debhelper (>= 7) Standards-Version: 3.7.3 Homepage: http://www.consol.de/opensource/nagios/check-logfiles Package: check-logfiles Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Nagios plugin which checks logfiles incremental <insert long description, indented with spaces>
copyright: This package was debianized by Julian Golderer <j.g@example.com> on Mon, 22 Jun 2009 22:45:32 +0200. It was downloaded from <url://http://www.consol.de/opensource/nagios/check-logfiles> Upstream Author(s): Gerhard Laußer <gerhard.lausser@consol.de> Copyright: <Copyright (C) 2007 Gerhard Laußer> License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. The Debian packaging is (C) 2009, Julian Golderer <j.g@example.com> and is licensed under the GPL, see above. # Please also look if there are files or directories which have a # different copyright/license attached and list them here.
dirs: usr/lib/nagios/plugins
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 configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. dh_auto_configure -- --prefix=/usr/lib/nagios --libexecdir=\${prefix}/plugins touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) #docbook-to-man debian/check-logfiles.sgml > check-logfiles.1 touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. dh_auto_clean dh_clean install: build dh_testdir dh_testroot dh_prep #dh_clean -k dh_installdirs # Add here commands to install the package into debian/check-logfiles. $(MAKE) DESTDIR=$(CURDIR)/debian/check-logfiles install # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure
Code: cd ~/debbuild dpkg-source -b check-logfiles-3.0/
Code: dpkg-source -x check-logfiles_3.0-1.dsc check-logfiles-bin cd check-logfiles-bin dpkg-buildpackage
Schlusswort Top
Anhang: Verwendung mit SuSE Build Service Top
/etc/apt/sources.list: deb http://ftp.at.debian.org/debian/ lenny main non-free contrib deb-src http://ftp.at.debian.org/debian/ lenny main non-free contrib deb http://security.debian.org/ lenny/updates main contrib non-free deb-src http://security.debian.org/ lenny/updates main contrib non-free deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free deb http://download.opensuse.org/repositories/home:/glua/Debian_5.0 ./
Weblinks Top
Gibt es noch irgendwelche Fragen, oder wollen Sie über den Artikel diskutieren? Sprachenübersicht/Betriebssysteme/Linux/Debian/Debian Paketbau |