diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-10-05 00:07:20 +0200 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-10-05 00:07:20 +0200 |
commit | 7b0347285ecb0b78ce0b699a1a6c9e50e22f7f07 (patch) | |
tree | 7623ea1524ff044b9af279dcfc9735c483b74be7 | |
parent | 5bd380b35e7b8f6acca24635f393d216e92cb2b5 (diff) | |
download | MAC-Telnet-0.1.tar.gz MAC-Telnet-0.1.zip |
Added files for packaging mactelnet for debian/ubuntuv0.1
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | debian/README | 45 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 14 | ||||
-rw-r--r-- | debian/copyright | 40 | ||||
-rw-r--r-- | debian/dirs | 2 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rwxr-xr-x | debian/rules | 122 |
9 files changed, 232 insertions, 2 deletions
@@ -7,8 +7,8 @@ dist-clean: rm -f mactelnet mndp install: all - cp mndp /usr/bin/ - cp mactelnet /usr/sbin/ + cp mndp $(DESTDIR)/usr/bin/ + cp mactelnet $(DESTDIR)/usr/sbin/ mactelnet: config.h main.c udp.h udp.c mactelnet.c mactelnet.h console.c console.h devices.c devices.h gcc -g -o mactelnet -lcrypto main.c udp.c mactelnet.c console.c devices.c diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..f6c0e51 --- /dev/null +++ b/debian/README @@ -0,0 +1,45 @@ +MAC-Telnet for Linux +==================== + +A linux console tool for connecting to MikroTik RouterOS devices via their +ethernet address. + +NB: Alpha stage code. Do not expect to run flawlessy. + +Installation +------------ + +Make sure you have installed openssl development files. + +For Ubuntu users: + sudo apt-get install libssl-dev + +Then download source tarball, extract, compile and install: + + wget http://github.com/haakonnessjoen/MAC-Telnet/tarball/master + tar zxvf haakonness*.tar.gz + cd haakonness*/ + make all install + +Now you're ready. + +Usage +----- + + $ ./mactelnet eth0 0:c:42:43:58:a5 -u admin + Password: + Connecting to 0:c:42:43:58:a5...done + + + MMM MMM KKK TTTTTTTTTTT KKK + MMMM MMMM KKK TTTTTTTTTTT KKK + MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK + MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK + MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK + MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK + + MikroTik RouterOS 4.0 (c) 1999-2009 http://www.mikrotik.com/ + + + [admin@HMG] > + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9b3ecfe --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mactelnet (0.1-0ubuntu1) unstable; urgency=low + + * Initial Release. + + -- Haakon Nessjoen <haakon.nessjoen@gmail.com> Mon, 04 Oct 2010 23:16:17 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..04cf8f5 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: mactelnet +Section: net +Priority: extra +Maintainer: Haakon Nessjoen <haakon.nessjoen@gmail.com> +Build-Depends: debhelper (>= 7), linux-libc-dev (>= 2.6), libssl-dev (>= 0.9.8g-9) +Standards-Version: 3.8.0 +Homepage: http://github.com/haakonnessjoen/MAC-Telnet/ + +Package: mactelnet +Architecture: any +Depends: libssl0.9.8 (>= 0.9.8g-9), libc6 (>= 2.9) +Description: MAC-Telnet client for Linux + A linux console tool for connecting to MikroTik RouterOS devices via their ethernet address. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6e825b3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by: + + Hakon Nessjoen <haakon.nessjoen@gmail.com> on Mon, 04 Oct 2010 23:16:17 +0200 + +It was downloaded from: + + http://github.com/haakonnessjoen/MAC-Telnet + +Upstream Author(s): + + Hakon Nessjoen <haakon.nessjoen@gmail.com> + +Copyright: + + Copyright (C) 2010 Haakon Nessjoeen + +License: + This package 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 package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is: + + Copyright C) 2010, Haakon Nessjoen <haakon.nessjoen@gmail.com> + +and is licensed under the GPL, see above. + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..8d526b9 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.markdown diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1e68b5f --- /dev/null +++ b/debian/rules @@ -0,0 +1,122 @@ +#!/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. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +#Architecture +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: configure-stamp + + # Add here commands to compile the arch part of the package. + #$(MAKE) + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: configure-stamp + + # Add here commands to compile the indep part of the package. + #$(MAKE) doc + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp configure-stamp + + $(MAKE) clean + + dh_clean + +install: install-indep install-arch +install-indep: + dh_testdir + dh_testroot + dh_prep -i + dh_installdirs -i + + # Add here commands to install the indep part of the package into + # debian/<package>-doc. + #INSTALLDOC# + + dh_install -i + +install-arch: + dh_testdir + dh_testroot + dh_prep -s + dh_installdirs -s + + # Add here commands to install the arch part of the package into + # debian/tmp. + $(MAKE) DESTDIR=$(CURDIR)/debian/mactelnet install + + dh_install -s +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs +# dh_installdocs +# dh_installexamples +# 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 +# Build architecture independant packages using the common target. +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: build-arch install-arch + $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure |