]> mj.ucw.cz Git - ywho.git/commitdiff
Debianized...
authorMartin Mares <mj@ucw.cz>
Fri, 8 Jan 1999 13:51:52 +0000 (13:51 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 8 Jan 1999 13:51:52 +0000 (13:51 +0000)
Makefile
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index 1cffb0e46cf89b4fe3ee4e74a49f3198c22fe4e9..d3f0f6bf970200554ff79c65a3aee240775c485b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
 
 CFLAGS=-O2 -m486 -fomit-frame-pointer -Wall -Wno-parentheses -malign-loops=0 -malign-jumps=0 -malign-functions=2
 LDFLAGS=-s
+ROOT=/
 
 all: ywho nwhod nwho
 
@@ -22,7 +23,8 @@ clean:
 
 install:
        strip ywho
-       install -s -m 755 ywho nwho /usr/bin
-       ln -sf nwho /usr/bin/nuptime
-       install -s -m 755 nwhod /usr/sbin
-       install -d -m 755 /var/spool/nwho
+       mkdir -p $(ROOT)/usr/bin $(ROOT)/usr/sbin
+       install -s -m 755 ywho nwho $(ROOT)/usr/bin
+       ln -sf nwho $(ROOT)/usr/bin/nuptime
+       install -s -m 755 nwhod $(ROOT)/usr/sbin
+       install -d -m 755 $(ROOT)/var/spool/nwho
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..c7395d7
--- /dev/null
@@ -0,0 +1,9 @@
+ywho (1.0) unstable; urgency=low
+
+  * First released version.
+
+ -- Martin Mares <mj@ucw.cz>  Sun, 8 Jan 1999 14:44:21 +0100
+
+Local variables:
+  mode: debian-changelog
+  End:
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..729541d
--- /dev/null
@@ -0,0 +1,14 @@
+Source: ywho
+Section: ucw
+Priority: optional
+Maintainer: Martin Mares <mj@ucw.cz>
+Standards-Version: 2.1.0.0
+
+Package: ywho
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Extended who
+ This is Yet Another Who Replacement utility with neat display of
+ all logged in users together with important system status information
+ like average load, current date and time, free memory and so on.
+ Also includes nwho/nwhod, a replacement for rwho/rwhod.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..dd04f64
--- /dev/null
@@ -0,0 +1,17 @@
+YWho -- who/rwho/rwhod replacement
+Copyright (c) 1996--1999 Martin Mares <mj@ucw.cz>
+
+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, 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 in the file /usr/doc/copyright/GPL.  If not,
+write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..7d14701
--- /dev/null
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+# Rules for building of ywho Debian/UCW Package
+# (c) 1999 Martin Mares <mj@ucw.cz>
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+       dh_testdir
+       $(MAKE)
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp
+       $(MAKE) clean
+       dh_clean
+
+binary-indep: build
+
+binary-arch: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs etc sbin
+
+       $(MAKE) ROOT=`pwd`/debian/tmp install
+
+#      dh_installdocs
+#      dh_installexamples
+#      dh_installmenu
+#      dh_installinit
+#      dh_installcron
+#      dh_installmanpages
+       dh_undocumented nwho.1 nwhod.8 ywho.1
+       dh_installchangelogs
+       dh_strip
+#      dh_compress
+       dh_fixperms
+#      dh_suidregister
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+#      dh_makeshlibs
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary