--- ibmasm-utils-3.0.orig/debian/dirs +++ ibmasm-utils-3.0/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- ibmasm-utils-3.0.orig/debian/docs +++ ibmasm-utils-3.0/debian/docs @@ -0,0 +1 @@ +src/README --- ibmasm-utils-3.0.orig/debian/rules +++ ibmasm-utils-3.0/debian/rules @@ -0,0 +1,80 @@ +#!/usr/bin/make -f + +# 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. + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) -C $(CURDIR)/src + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/ibmasm-utils. + $(MAKE) -C $(CURDIR)/src ROOT=$(CURDIR)/debian/ibmasm-utils install + mkdir -p $(CURDIR)/debian/ibmasm-utils/usr/lib + mkdir -p $(CURDIR)/debian/ibmasm-utils/usr/include + install -m 644 $(CURDIR)/src/api/libibmasm.h $(CURDIR)/debian/ibmasm-utils/usr/include + install -m 644 $(CURDIR)/src/api/rsa.h $(CURDIR)/debian/ibmasm-utils/usr/include + install -m 644 $(CURDIR)/src/api/libsysSp.so $(CURDIR)/debian/ibmasm-utils/usr/lib + +# 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 --- ibmasm-utils-3.0.orig/debian/control +++ ibmasm-utils-3.0/debian/control @@ -0,0 +1,13 @@ +Source: ibmasm-utils +Section: admin +Priority: extra +Maintainer: Chuck Short +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.3 + +Package: ibmasm-utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: IBM Advanced System Management Drivers + This package contains the tools necessary to set up the IBM + Advanced System Management Drives. --- ibmasm-utils-3.0.orig/debian/copyright +++ ibmasm-utils-3.0/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by chuck on +Tue, 29 Jan 2008 11:04:25 -0500. + +It was downloaded from + +Upstream Author(s): + + Max Asbck + Vernon Mauery + +Copyright: + + Copyright (C) IBM Corporation, 2005 + + +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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, + +The Debian packaging is (C) 2008, chuck and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. --- ibmasm-utils-3.0.orig/debian/compat +++ ibmasm-utils-3.0/debian/compat @@ -0,0 +1 @@ +5 --- ibmasm-utils-3.0.orig/debian/changelog +++ ibmasm-utils-3.0/debian/changelog @@ -0,0 +1,6 @@ +ibmasm-utils (3.0-1ubuntu1) hardy; urgency=low + + * Initial release. + + -- Chuck Short Tue, 29 Jan 2008 11:04:25 -0500 + --- ibmasm-utils-3.0.orig/src/api/Makefile +++ ibmasm-utils-3.0/src/api/Makefile @@ -2,7 +2,7 @@ api_object = libibmasm.o api_lib = libsysSp.so -CFLAGS = -g -Wall -fPIC +CFLAGS = -g -Wall -fPIC -fno-stack-protector all: $(api_lib) --- ibmasm-utils-3.0.orig/src/bin/halt/ibmsphalt.c +++ ibmasm-utils-3.0/src/bin/halt/ibmsphalt.c @@ -27,6 +27,7 @@ #include #include +#include #define N_IGNORE 13 static unsigned char *ignore[N_IGNORE] = { --- ibmasm-utils-3.0.orig/src/Makefile +++ ibmasm-utils-3.0/src/Makefile @@ -7,6 +7,5 @@ cd init; $(MAKE) install: - cd api; $(MAKE) install cd bin; $(MAKE) install cd init; $(MAKE) install --- ibmasm-utils-3.0.orig/src/init/ibmspup +++ ibmasm-utils-3.0/src/init/ibmspup @@ -1,6 +1,6 @@ #!/bin/bash -if ps -e | grep -qe "X\|kdm"; then +if ps -e | grep -qe "X\|kdm\|gdm"; then echo "X must not be running while loading the ibmasm driver" echo "Kill X and try again." exit 1 @@ -20,7 +20,7 @@ done echo DEVICE=`evnode -n "ibmasm RSA I remote mouse"` -XCONFIG="/etc/X11/XF86Config" +XCONFIG="/etc/X11/xorg.conf" if [ -e $XCONFIG ]; then TMPFILE=`mktemp /tmp/ibmspupX.XXXXXXXXXX` || exit 1 AWKFILE=`mktemp /tmp/ibmspupAWK.XXXXXXXXXX` || exit 1