--- batmon.app-0.2.orig/GNUmakefile +++ batmon.app-0.2/GNUmakefile @@ -8,16 +8,16 @@ # Application # VERSION = 0.2 -PACKAGE_NAME = batmon -APP_NAME = batmon -batmon_APPLICATION_ICON = +PACKAGE_NAME = BatMon +APP_NAME = BatMon +BatMon_APPLICATION_ICON = GNUSTEP_INSTALLATION_DIR = $(HOME)/GNUstep # # Resource files # -batmon_RESOURCE_FILES = \ +BatMon_RESOURCE_FILES = \ Resources/batmon.gorm\ Resources/Info-gnustep.plist\ Resources/LICENSE \ @@ -26,21 +26,21 @@ # # Header files # -batmon_HEADER_FILES = \ +BatMon_HEADER_FILES = \ AppController.h # # Class files # -batmon_OBJC_FILES = \ +BatMon_OBJC_FILES = \ AppController.m # # C files # -batmon_C_FILES = +BatMon_C_FILES = -batmon_OBJC_FILES += \ +BatMon_OBJC_FILES += \ main.m # --- batmon.app-0.2.orig/debian/BatMon.1 +++ batmon.app-0.2/debian/BatMon.1 @@ -0,0 +1,21 @@ +.TH BATMON 1 "January 21, 2006" +.SH NAME +BatMon \- Battery monitor +.SH SYNOPSIS +.B BatMon +.RI [ options ] +.SH DESCRIPTION +This manual page documents briefly the +.B BatMon +command. +.PP +\fBBatMon\fP is a battery monitor for laptops. It displays the current +status of the battery (charge/discharge and energy level) as well as some +information about the general health of the cell. +.SH SEE ALSO +.BR GNUstep (7). +.SH AUTHOR +BatMon was written by Riccardo Mottola. +.PP +This manual page was written by G\[:u]rkan Seng\[:u]n , +for the Debian project (but may be used by others). --- batmon.app-0.2.orig/debian/changelog +++ batmon.app-0.2/debian/changelog @@ -0,0 +1,12 @@ +batmon.app (0.2-2) unstable; urgency=low + + * Patched GNUmakefile so BatMon works. + + -- Gürkan Sengün Wed, 5 Apr 2006 14:36:36 +0200 + +batmon.app (0.2-1) unstable; urgency=low + + * Initial release. (Closes: #352096) + + -- Gürkan Sengün Sat, 21 Jan 2006 11:49:45 +0100 + --- batmon.app-0.2.orig/debian/compat +++ batmon.app-0.2/debian/compat @@ -0,0 +1 @@ +4 --- batmon.app-0.2.orig/debian/control +++ batmon.app-0.2/debian/control @@ -0,0 +1,22 @@ +Source: batmon.app +Section: x11 +Priority: optional +Maintainer: Gürkan Sengün +Build-Depends: debhelper (>= 4.0.0), libgnustep-gui0.10-dev, gnustep-make +Standards-Version: 3.6.2 + +Package: batmon.app +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Battery monitor for GNUstep + Battery Monitor is a battery monitor for laptops. It displays the current + status of the battery (charge/discharge and energy level) as well as some + information about the general health of the cell. + . + Due to the way Battery Monitor is implemented it currently works only on + linux 2.6 kernels with ACPI and that too reliably only on some acpi/bios + combination (it is being worked on: the /proc file system is very + inconsistent.) A user-contributed patch to make it work on FreeBSD has been + merged in. + . + Homepage: http://www.nongnu.org/gap/batmon/ --- batmon.app-0.2.orig/debian/copyright +++ batmon.app-0.2/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by Gürkan Sengün on +Sat, 21 Jan 2006 11:49:45 +0100. + +It was downloaded from http://www.nongnu.org/gap/batmon/ + +Copyright Holder: 2005 Riccardo Mottola (multix), + FreeBSD support by Chris B. Vetter, + Free Software Foundation + +License: +Released under the GNU GPL. +Please see /usr/share/common-licenses/GPL for the full license. + + This program 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 program 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 program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. --- batmon.app-0.2.orig/debian/dirs +++ batmon.app-0.2/debian/dirs @@ -0,0 +1 @@ +usr/bin --- batmon.app-0.2.orig/debian/manpages +++ batmon.app-0.2/debian/manpages @@ -0,0 +1 @@ +debian/BatMon.1 --- batmon.app-0.2.orig/debian/menu +++ batmon.app-0.2/debian/menu @@ -0,0 +1,2 @@ +?package(batmon.app):needs="X11" section="Apps/System"\ + title="BatMon" command="/usr/bin/BatMon" --- batmon.app-0.2.orig/debian/rules +++ batmon.app-0.2/debian/rules @@ -0,0 +1,79 @@ +#!/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 + + +CFLAGS = -Wall -g +GS_ROOT = /usr/lib/GNUstep/ + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + . $(GS_ROOT)System/Library/Makefiles/GNUstep.sh && \ + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + . $(GS_ROOT)System/Library/Makefiles/GNUstep.sh && \ + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + . $(GS_ROOT)System/Library/Makefiles/GNUstep.sh && \ + $(MAKE) install GNUSTEP_INSTALLATION_DIR=$(CURDIR)/debian/batmon.app$(GS_ROOT)System + -rm $(CURDIR)/debian/batmon.app/usr/lib/GNUstep/System/Applications/batmon.app/Resources/LICENSE + + +# 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_installman + dh_link -pbatmon.app usr/bin/gnustep-app-wrapper usr/bin/BatMon + dh_strip + dh_compress + dh_fixperms + 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