Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [r13] Maximize Restore History

Tagging 0.8.2.

alex 2010-12-26

1 2 3 > >> (Page 1 of 3)
added /trunk/gsmartcontrol/debian.dist/postinst
added /trunk/gsmartcontrol/debian.dist/compat
added /trunk/gsmartcontrol/debian.dist/changelog
added /trunk/gsmartcontrol/data/nsis/nsi_install.ico
added /trunk/gsmartcontrol/src/applib/app_ui_res_utils_test_data.cpp
added /trunk/gsmartcontrol/src/applib/app_ui_res_utils_test.cpp
added /trunk/gsmartcontrol/data/gsmartcontrol.desktop.in
changed /trunk/gsmartcontrol/src/Makefile.am
changed /trunk/gsmartcontrol/src/applib/storage_device.cpp
changed /trunk/gsmartcontrol/configure.ac
changed /trunk/gsmartcontrol/src/res/gsc_info_window.glade
changed /trunk/gsmartcontrol/NEWS
changed /trunk/gsmartcontrol/src/res/gsc_executor_log_window.glade
changed /trunk/gsmartcontrol/src/gsc_main_window.cpp
changed /trunk/gsmartcontrol/data/Makefile.am
changed /trunk/gsmartcontrol/src/applib/smartctl_parser.cpp
changed /trunk/gsmartcontrol/src/gsc_info_window.cpp
changed /trunk/gsmartcontrol/src/gsc_executor_log_window.cpp
changed /trunk/gsmartcontrol/gsmartcontrol.spec.in
copied /trunk/gsmartcontrol/src/winres.rc.in -> /trunk/gsmartcontrol/debian.dist/copyright
copied /trunk/gsmartcontrol/data/gsmartcontrol_root.sh.in -> /trunk/gsmartcontrol/debian.dist/rules
/trunk/gsmartcontrol/debian.dist/postinst Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/debian.dist/compat Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/debian.dist/changelog Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/data/nsis/nsi_install.ico Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/applib/app_ui_res_utils_test_data.cpp Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/applib/app_ui_res_utils_test.cpp Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/data/gsmartcontrol.desktop.in Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/Makefile.am Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/applib/storage_device.cpp Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/configure.ac Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/res/gsc_info_window.glade Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/NEWS Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/res/gsc_executor_log_window.glade Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/gsc_main_window.cpp Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/data/Makefile.am Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/applib/smartctl_parser.cpp Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/gsc_info_window.cpp Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/gsc_executor_log_window.cpp Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/gsmartcontrol.spec.in Diff Switch to side-by-side view
Loading...
/trunk/gsmartcontrol/src/winres.rc.in to /trunk/gsmartcontrol/debian.dist/copyright
--- a/trunk/gsmartcontrol/src/winres.rc.in
+++ b/trunk/gsmartcontrol/debian.dist/copyright
@@ -1,29 +1,32 @@
-//#include <winver.h>
+This package was debianized by Alexander Shaduri <ashaduri 'at' gmail.com> on
+Sat, 15 Nov 2008 00:12:04 +0400.
 
-biocalcon           ICON          "gsmartcontrol.ico"
+It was downloaded from <http://gsmartcontrol.berlios.de/>
 
-1 VERSIONINFO
-    FILEVERSION     0,0,0,0
-    PRODUCTVERSION  0,0,0,0
-//    FILEOS          VOS__WINDOWS32
-//    FILETYPE        VFT_FONT
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "04090025"
-        BEGIN
-            VALUE "FileDescription", "GSmartControl - Hard disk drive health inspection tool"
-            VALUE "FileVersion", "@VERSION@"
-            VALUE "InternalName", "gsmartcontrol.exe"
-            VALUE "LegalCopyright", "Copyright (C) 2008  Alexander Shaduri"
-            VALUE "OriginalFilename", "gsmartcontrol.exe"
-            VALUE "ProductName", "GSmartControl"
-            VALUE "ProductVersion", "@VERSION@"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 1033, 37
-    END
-END
+Copyright:
 
+    Copyright (C) 2008  Alexander Shaduri <ashaduri 'at' gmail.com>
+
+License:
+
+This product is multi-licensed under GNU GPL versions 2 and 3.
+You are free to choose which one you use.
+
+This program is free software: you can redistribute it and/or modify it under
+the terms of either version 2 or (at your option) version 3 of the GNU General
+Public License as published by the Free Software Foundation.
+
+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 Licenses for more details.
+
+You should have received copies of these licenses along with this program.
+If not, see <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public Licenses can be found in `/usr/share/common-licenses/GPL-2' and
+`/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is (C) 2008  Alexander Shaduri <ashaduri 'at' gmail.com> and
+is licensed under the GPLv2 and GPLv3, see above.
+
/trunk/gsmartcontrol/data/gsmartcontrol_root.sh.in to /trunk/gsmartcontrol/debian.dist/rules
--- a/trunk/gsmartcontrol/data/gsmartcontrol_root.sh.in
+++ b/trunk/gsmartcontrol/debian.dist/rules
@@ -1,82 +1,98 @@
-#!/bin/bash
-############################################################################
-# Copyright:
-#      (C) 2008  Alexander Shaduri <ashaduri 'at' gmail.com>
-# License: See LICENSE_zlib.txt file
-############################################################################
+#!/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.
 
-# Run gsmartcontrol with root, asking for root password first.
-
-EXEC_BIN="@prefix@/bin/gsmartcontrol";
-prog_name="gsmartcontrol"
-
-DESKTOP="$1";
-
-# This works for --help too
-if [ "$DESKTOP" = "" ]; then
-	DESKTOP="other";  # default
-
-elif [ "$DESKTOP" != "kde" ] && [ "$DESKTOP" != "gnome" ] && [ "$DESKTOP" != "other" ]; then
-	echo "Usage: $0 <desktop_name> [<${prog_name}_options>]";
-	echo "Desktop name may be kde, gnome, other.";
-	exit 1;
-fi
-shift;  # remove $1
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
 
-# They're basically the same, only the order is different.
-# sux requires xterm to ask for the password.
-# xdg-su is basically like this script, except worse :)
-gnome_sus="gnomesu gksu kdesu xdg-su sux";
-kde_sus="kdesu gnomesu gksu xdg-su sux";
-other_sus="$gnome_sus";
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 
-candidates="";
-found_su=""
-
-if [ "$DESKTOP" = "gnome" ]; then
-	candidates="$gnome_sus";
-elif [ "$DESKTOP" = "kde" ]; then
-	candidates="$kde_sus";
-elif [ "$DESKTOP" = "other" ]; then
-	candidates="$other_sus";
-fi
-
-for subin in $candidates; do
-	which $subin &>/dev/null
-	if [ $? -eq 0 ]; then
-		found_su="$subin";
-		break;
-	fi
-done
-
-if [ "$found_su" = "" ]; then
-	xmessage "Error launching ${prog_name}: No suitable su mechanism found.
-Try installing gnomesu, kdesu or sux first.";
-	exit 1;
-fi
-
-# echo $found_su;
-
-# gnomesu -c 'gsmartcontrol --no-scan'
-# kdesu -c 'gsmartcontrol --no-scan'
-# xterm -e sux -c 'gsmartcontrol --no-scan'  # sux asks for password in a terminal
-
-full_cmd=""
-if [ "$found_su" = "sux" ]; then
-	full_cmd="xterm -e sux -c '$EXEC_BIN $@'"
-
-elif [ "$found_su" = "gksu" ]; then
-	full_cmd="$found_su '$EXEC_BIN $@'"
-
-else  # gnomesu, kdesu, xdg-su
-	full_cmd="$found_su -c '$EXEC_BIN $@'"
-fi
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	./configure --enable-optimize-options=auto --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
 
-eval $full_cmd
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#docbook-to-man debian/gsmartcontrol.sgml > gsmartcontrol.1
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/gsmartcontrol.
+	$(MAKE) DESTDIR=$(CURDIR)/debian/gsmartcontrol install-strip
 
 
+# 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 ChangeLog
+	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 
1 2 3 > >> (Page 1 of 3)