From db825c5f289564a9753783e61c098589ba8a886b Mon Sep 17 00:00:00 2001 From: Jacob Appelbaum Date: Wed, 17 Aug 2011 23:26:49 +0200 Subject: add gpl2 uaputl srcs before use --- packages/dreamplug-uaputl/Makefile | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 packages/dreamplug-uaputl/Makefile (limited to 'packages/dreamplug-uaputl/Makefile') diff --git a/packages/dreamplug-uaputl/Makefile b/packages/dreamplug-uaputl/Makefile new file mode 100755 index 0000000..1847183 --- /dev/null +++ b/packages/dreamplug-uaputl/Makefile @@ -0,0 +1,52 @@ +# File : uaputl/Makefile +# +# Copyright (C) 2008, Marvell International Ltd. +# All Rights Reserved + +# Path to the top directory of the wlan distribution +PATH_TO_TOP = ../.. + +# Determine how we should copy things to the install directory +ABSPATH := $(filter /%, $(INSTALLDIR)) +RELPATH := $(filter-out /%, $(INSTALLDIR)) +INSTALLPATH := $(ABSPATH) +ifeq ($(strip $(INSTALLPATH)),) +INSTALLPATH := $(PATH_TO_TOP)/$(RELPATH) +endif + +# Override CFLAGS for application sources, remove __ kernel namespace defines +CFLAGS := $(filter-out -D__%, $(EXTRA_CFLAGS)) + + +#CFLAGS += -DAP22 -fshort-enums +CFLAGS += -Wall +#ECHO = @ +LIBS = -lrt + +.PHONY: default tags all + +OBJECTS = uaputl.o uapcmd.o +HEADERS = uaputl.h uapcmd.h + +TARGET = uaputl + +build default: $(TARGET) + @cp -f $(TARGET) $(INSTALLPATH) + @cp -rf config/* $(INSTALLPATH) + + +all : tags default + +$(TARGET): $(OBJECTS) $(HEADERS) + $(ECHO)$(CC) $(LIBS) -o $@ $(OBJECTS) + +%.o: %.c $(HEADERS) + $(ECHO)$(CC) $(CFLAGS) -c -o $@ $< + +tags: + ctags -R -f tags.txt + +clean: + $(ECHO)$(RM) $(OBJECTS) $(TARGET) + $(ECHO)$(RM) tags.txt + -- cgit v1.2.3 From dacbdb531c2412fe2802a0f562afad9ec024fc5a Mon Sep 17 00:00:00 2001 From: Jacob Appelbaum Date: Wed, 17 Aug 2011 23:38:09 +0200 Subject: add DESTDIR to Makefile and debian dir to package dir --- packages/dreamplug-uaputl/Makefile | 3 +++ packages/dreamplug-uaputl/debian/README | 8 ++++++++ packages/dreamplug-uaputl/debian/changelog | 5 +++++ packages/dreamplug-uaputl/debian/compat | 1 + packages/dreamplug-uaputl/debian/control | 15 ++++++++++++++ packages/dreamplug-uaputl/debian/copyright | 28 ++++++++++++++++++++++++++ packages/dreamplug-uaputl/debian/docs | 0 packages/dreamplug-uaputl/debian/rules | 13 ++++++++++++ packages/dreamplug-uaputl/debian/source/format | 1 + 9 files changed, 74 insertions(+) create mode 100644 packages/dreamplug-uaputl/debian/README create mode 100644 packages/dreamplug-uaputl/debian/changelog create mode 100644 packages/dreamplug-uaputl/debian/compat create mode 100644 packages/dreamplug-uaputl/debian/control create mode 100644 packages/dreamplug-uaputl/debian/copyright create mode 100644 packages/dreamplug-uaputl/debian/docs create mode 100755 packages/dreamplug-uaputl/debian/rules create mode 100644 packages/dreamplug-uaputl/debian/source/format (limited to 'packages/dreamplug-uaputl/Makefile') diff --git a/packages/dreamplug-uaputl/Makefile b/packages/dreamplug-uaputl/Makefile index 1847183..4e33274 100755 --- a/packages/dreamplug-uaputl/Makefile +++ b/packages/dreamplug-uaputl/Makefile @@ -50,3 +50,6 @@ clean: $(ECHO)$(RM) $(OBJECTS) $(TARGET) $(ECHO)$(RM) tags.txt +# We add this install target to allow for installation +install: + install $(TARGET) $(DESTDIR)/usr/bin/$(TARGET) diff --git a/packages/dreamplug-uaputl/debian/README b/packages/dreamplug-uaputl/debian/README new file mode 100644 index 0000000..a06ed70 --- /dev/null +++ b/packages/dreamplug-uaputl/debian/README @@ -0,0 +1,8 @@ +The Debian Package dreamplug-uaputl +---------------------------- + +This source code was released by Marvell and is used to control the DreamPlug +wireless driver; it has some horrible binary blob garbage involved in the +process but not in this package. + + -- Jacob Appelbaum Wed, 17 Aug 2011 23:26:07 +0200 diff --git a/packages/dreamplug-uaputl/debian/changelog b/packages/dreamplug-uaputl/debian/changelog new file mode 100644 index 0000000..8669a6f --- /dev/null +++ b/packages/dreamplug-uaputl/debian/changelog @@ -0,0 +1,5 @@ +dreamplug-uaputl (1.12) unstable; urgency=low + + * Initial Release. + + -- Jacob Appelbaum Wed, 17 Aug 2011 23:26:07 +0200 diff --git a/packages/dreamplug-uaputl/debian/compat b/packages/dreamplug-uaputl/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/packages/dreamplug-uaputl/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packages/dreamplug-uaputl/debian/control b/packages/dreamplug-uaputl/debian/control new file mode 100644 index 0000000..76dab02 --- /dev/null +++ b/packages/dreamplug-uaputl/debian/control @@ -0,0 +1,15 @@ +Source: dreamplug-uaputl +Section: net +Priority: extra +Maintainer: Jacob Appelbaum +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.9.1 +Homepage: https://www.torproject.org/ + +Package: dreamplug-uaputl +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: controls the DreamPlug Marvell wifi chipset + This is required to control the Marvell wifi card that ships with the + DreamPlug. The DreamPlug wireless card does not use the standard linux + wireless tools and thus requires this painfully bad software. diff --git a/packages/dreamplug-uaputl/debian/copyright b/packages/dreamplug-uaputl/debian/copyright new file mode 100644 index 0000000..f388c75 --- /dev/null +++ b/packages/dreamplug-uaputl/debian/copyright @@ -0,0 +1,28 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: Uaputl.tar.gz +Source: http://www.plugcomputer.org/plugwiki/index.php?title=Setting_GuruPlug_to_be_a_WiFi_Access_Point&redirect=no + +Files: * +Copyright: Copyright (C) 2008-2009, Marvell International Ltd. +License: GPL-2.0+ + +Files: debian/* +Copyright: 2011 Jacob Appelbaum +License: GPL-2.0+ + +License: GPL-2.0+ + 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 program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/packages/dreamplug-uaputl/debian/docs b/packages/dreamplug-uaputl/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/packages/dreamplug-uaputl/debian/rules b/packages/dreamplug-uaputl/debian/rules new file mode 100755 index 0000000..b760bee --- /dev/null +++ b/packages/dreamplug-uaputl/debian/rules @@ -0,0 +1,13 @@ +#!/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. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/packages/dreamplug-uaputl/debian/source/format b/packages/dreamplug-uaputl/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/packages/dreamplug-uaputl/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- cgit v1.2.3