Browse Source

Debianization

Serj Kalichev 11 years ago
parent
commit
14973c037e

+ 9 - 0
.gitignore

@@ -20,6 +20,15 @@
 /aclocal.m4
 /Makefile.in
 
+# Debian files
+/build-stamp
+/debian/*.log
+/debian/tmp
+/debian/*substvars
+/debian/klish
+/debian/klish-dev
+/debian/files
+
 /bin/clish
 /bin/konf
 /bin/konfd

+ 0 - 0
contrib/clish/root-view.xml → contrib/debian/clish/root-view.xml


+ 0 - 0
contrib/clish/startup.xml → contrib/debian/clish/startup.xml


+ 0 - 0
contrib/konfd.init.debian → contrib/debian/konfd


+ 1 - 7
debian/changelog

@@ -1,11 +1,5 @@
-klish (1.6.2-1) unstable; urgency=low
+klish (1.6.2) unstable; urgency=low
 
   * New upstream
 
  -- Nixus Networks <debian@nixus.es>  Thu, 9 Dec 2012 17:04:00 +0200
-
-klish (1.5.2-8) unstable; urgency=low
-
-  * Initial Release.
-
- -- Nixus Networks <debian@nixus.es>  Thu, 19 Jan 2012 18:48:36 +0200

+ 1 - 0
debian/compat

@@ -0,0 +1 @@
+7

+ 14 - 6
debian/control

@@ -1,15 +1,23 @@
 Source: klish
 Maintainer: Nixus Networks <debian@nixus.es>
 Uploaders: Nixus Networks <debian@nixus.es>
-Section: web
+Section: shells
 Priority: extra
-Standards-Version: 0.1
-Build-Depends: debhelper (>= 7), 
+Standards-Version: 3.9.3
+Build-Depends: debhelper (>= 7), libexpat1-dev
 Homepage: http://www.nixus.es
 
 Package: klish
-Architecture: amd64
-Depends: 
+Architecture: any
+Depends: libexpat1, ${shlibs:Depends}
 Recommends:
 Suggests:
-Description: Klish
+Description: command line interface shell
+  The klish is a framework for implementing a CISCO-like CLI on a UNIX systems.
+  It is configurable by XML files.
+
+Package: klish-dev
+Architecture: any
+Depends: klish
+Description: development files for klish
+  This package contains the development files for klish.

+ 113 - 0
debian/copyright

@@ -0,0 +1,113 @@
+This package was debianized by Serj Kalichev <serj.kalichev@gmail.com> on
+Dec, 10 Oct 2012 18:04:51 +0300.
+
+It was downloaded from http://klish.googlecode.com
+
+Upstream Authors:
+
+    Serj Kalichev <serj.kalichev@gmail.com>
+
+Copyright:
+
+    Copyright (C) 2009 Serj Kalichev
+
+License:
+
+================================================================================
+Overview
+This package contains code which is copyrighted to multiple sources.
+
+================================================================================
+3Com Corporation
+The intial public release of this software was developed by Graeme McKerrell
+whilst in the employment of 3Com Europe Ltd.
+
+Copyright (c) 2005, 3Com Corporation
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+    * Neither the name of 3Com Corporation nor the names of its contributors may
+      be used to endorse or promote products derived from this software without
+      specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+================================================================================
+Newport Networks Ltd.
+The 0.6-0.7 releases of this software was developed by Graeme McKerrell whilst in the 
+employment of Newport Networks Ltd.
+As well as enhancing the existing code the new modules were developed.
+
+Copyright (c) 2005,2006, Newport Networks Ltd
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+    * Neither the name of Newport Networks Ltd nor the names of its contributors may
+      be used to endorse or promote products derived from this software without
+      specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+================================================================================
+Serj Kalichev
+The klish is a fork of original clish.
+
+Copyright (c) 2010 Serj Kalichev.
+All Rights Reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+   this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+
+3. The name of the author may not be used to endorse or promote products derived
+   from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+

+ 0 - 4
debian/dirs

@@ -1,4 +0,0 @@
-usr/share/doc/clish/
-etc/clish/
-etc/init.d/
-etc/default/

+ 0 - 1
debian/files

@@ -1 +0,0 @@
-klish_1.6.2-1_amd64.deb web extra

+ 3 - 0
debian/install → debian/klish-dev.install

@@ -1,2 +1,5 @@
 clish.xsd	usr/share/doc/klish/
 xml-examples	usr/share/doc/klish/
+usr/include
+usr/lib/*.a
+usr/lib/*.so

+ 4 - 0
debian/klish.dirs

@@ -0,0 +1,4 @@
+usr/share/doc/clish
+etc/clish
+etc/init.d
+etc/default

+ 4 - 0
debian/klish.install

@@ -0,0 +1,4 @@
+contrib/debian/konfd	etc/init.d/
+contrib/debian/clish/*	etc/clish/
+usr/bin/*
+usr/lib/*.so.*

+ 0 - 0
debian/postinst → debian/klish.postinst


+ 5 - 3
debian/rules

@@ -37,10 +37,12 @@ install: build
 	dh_installdirs
 
 	$(MAKE) install DESTDIR=$(DESTDIR) LIBTOOL=libtool
-	rm -rf $(DESTDIR)/usr/include
+#	rm -rf $(DESTDIR)/usr/include
 
-	install -m 755 $(SRCTOP)/contrib/konfd.init.debian $(DESTDIR)/etc/init.d/konfd
-	cp $(SRCTOP)/contrib/clish/*	$(DESTDIR)/etc/clish/
+#	install -d $(DESTDIR)/etc/init.d
+#	install -d $(DESTDIR)/etc/clish
+#	install -m 755 $(SRCTOP)/contrib/debian/konfd.init.debian $(DESTDIR)/etc/init.d/konfd
+#	cp $(SRCTOP)/contrib/debian/clish/*	$(DESTDIR)/etc/clish/
 
 	dh_install
 

+ 1 - 0
debian/source/format

@@ -0,0 +1 @@
+3.0 (native)

+ 0 - 2
debian/substvars

@@ -1,2 +0,0 @@
-shlibs:Depends=libc6 (>= 2.7), libexpat1 (>= 1.95.8)
-misc:Depends=