summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Nelson2013-12-06 12:03:48 -0600
committerChris Ring2013-12-11 17:23:33 -0600
commitb80fd3a1a336b43c0da4c14367ffebda1cd9b461 (patch)
tree19fa3227040716d40f09994692d26e4d1e057a57
downloadluppa-b80fd3a1a336b43c0da4c14367ffebda1cd9b461.tar.gz
luppa-b80fd3a1a336b43c0da4c14367ffebda1cd9b461.tar.xz
luppa-b80fd3a1a336b43c0da4c14367ffebda1cd9b461.zip
cmem: Added Debian meta files
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rw-r--r--debian-mod/README.Debian11
-rw-r--r--debian-mod/changelog6
-rw-r--r--debian-mod/cmem-mod-dkms.install2
-rw-r--r--debian-mod/compat1
-rw-r--r--debian-mod/control11
-rw-r--r--debian-mod/copyright33
-rw-r--r--debian-mod/dirs1
-rw-r--r--debian-mod/dkms.conf9
-rwxr-xr-xdebian-mod/postinst49
-rwxr-xr-xdebian-mod/prerm28
-rwxr-xr-xdebian-mod/rules54
-rw-r--r--debian/README.Debian10
-rw-r--r--debian/README.source9
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/control11
-rw-r--r--debian/copyright33
-rw-r--r--debian/install0
-rwxr-xr-xdebian/rules7
19 files changed, 282 insertions, 0 deletions
diff --git a/debian-mod/README.Debian b/debian-mod/README.Debian
new file mode 100644
index 0000000..fee22ff
--- /dev/null
+++ b/debian-mod/README.Debian
@@ -0,0 +1,11 @@
1cmem-mod DKMS module for Debian
2-----------------
3
4Please see ./README for a description of the cmem-mod software.
5
6The Debian cmem-mod source package provides:
7
8 1) cmem-mod Package summary
9 2) cmem-mod-kernel-source, which provides the source for the kernel modules
10
11 -- TI Keystone PPA <ti-keystone-ppa@list.ti.com> Wed, 20 Nov 2013 10:50:43 -0800
diff --git a/debian-mod/changelog b/debian-mod/changelog
new file mode 100644
index 0000000..24bd56d
--- /dev/null
+++ b/debian-mod/changelog
@@ -0,0 +1,6 @@
1cmem-mod-dkms (4.00.01.08-0ubuntu1~ppa1) precise; urgency=low
2
3 * First version of cmem-mod
4
5 -- TI Keystone PPA <ti-keystone-ppa@list.ti.com> Wed, 20 Nov 2013 10:50:43 -0800
6
diff --git a/debian-mod/cmem-mod-dkms.install b/debian-mod/cmem-mod-dkms.install
new file mode 100644
index 0000000..dc960f5
--- /dev/null
+++ b/debian-mod/cmem-mod-dkms.install
@@ -0,0 +1,2 @@
1* usr/src/cmem-mod-4.00.01.08
2debian/dkms.conf usr/src/cmem-mod-4.00.01.08
diff --git a/debian-mod/compat b/debian-mod/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian-mod/compat
@@ -0,0 +1 @@
7
diff --git a/debian-mod/control b/debian-mod/control
new file mode 100644
index 0000000..c5f3d8f
--- /dev/null
+++ b/debian-mod/control
@@ -0,0 +1,11 @@
1Source: cmem-mod-dkms
2Section: admin
3Priority: extra
4Maintainer: TI Keystone PPA <ti-keystone-ppa@list.ti.com>
5Build-Depends: debhelper (>= 7), dkms
6Standards-Version: 3.8.1
7
8Package: cmem-mod-dkms
9Architecture: all
10Depends: dkms (>= 1.95), ${misc:Depends}
11Description: cmem-mod driver in DKMS format.
diff --git a/debian-mod/copyright b/debian-mod/copyright
new file mode 100644
index 0000000..93642a8
--- /dev/null
+++ b/debian-mod/copyright
@@ -0,0 +1,33 @@
1This package was debianized by TI Keystone PPA <ti-keystone-ppa@list.ti.com on
2Wed, 20 Nov 2013 10:50:43 -0800.
3
4
5 Copyright (c) 2012-2013, Texas Instruments Incorporated
6
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions
9 are met:
10
11 * Redistributions of source code must retain the above copyright
12 notice, this list of conditions and the following disclaimer.
13
14 * Redistributions in binary form must reproduce the above copyright
15 notice, this list of conditions and the following disclaimer in the
16 documentation and/or other materials provided with the distribution.
17
18 * Neither the name of Texas Instruments Incorporated nor the names of
19 its contributors may be used to endorse or promote products derived
20 from this software without specific prior written permission.
21
22 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
24 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
26 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
29 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
31 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
32 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
diff --git a/debian-mod/dirs b/debian-mod/dirs
new file mode 100644
index 0000000..b601f22
--- /dev/null
+++ b/debian-mod/dirs
@@ -0,0 +1 @@
usr/src
diff --git a/debian-mod/dkms.conf b/debian-mod/dkms.conf
new file mode 100644
index 0000000..469f5e6
--- /dev/null
+++ b/debian-mod/dkms.conf
@@ -0,0 +1,9 @@
1PACKAGE_VERSION="4.00.01.08"
2PACKAGE_NAME="cmem-mod"
3CLEAN="make -f lu.mak modules_clean"
4BUILT_MODULE_NAME="cmemk"
5BUILT_MODULE_LOCATION="src/cmem/module/"
6DEST_MODULE_LOCATION="/kernel/../extra/cmemk/"
7MAKE="make -f lu.mak module ARCH=arm KVER=$kernelver KERNEL_INSTALL_DIR=$kernel_source_dir TOOLCHAIN_PREFIX="
8AUTOINSTALL="yes"
9
diff --git a/debian-mod/postinst b/debian-mod/postinst
new file mode 100755
index 0000000..69cab2a
--- /dev/null
+++ b/debian-mod/postinst
@@ -0,0 +1,49 @@
1#!/bin/sh
2# Copyright (C) 2002-2005 Flavio Stanchina
3# Copyright (C) 2005-2006 Aric Cyr
4# Copyright (C) 2007 Mario Limonciello
5# Copyright (C) 2009 Alberto Milone
6
7set -e
8
9NAME=cmem-mod
10PACKAGE_NAME=$NAME-dkms
11DEB_NAME=$(echo $PACKAGE_NAME | sed 's,_,-,')
12CVERSION=`dpkg-query -W -f='${Version}' $DEB_NAME | awk -F "-" '{print $1}' | cut -d\: -f2`
13ARCH=`dpkg --print-architecture`
14
15dkms_configure () {
16 for POSTINST in /usr/lib/dkms/common.postinst "/usr/share/$PACKAGE_NAME/postinst"; do
17 if [ -f "$POSTINST" ]; then
18 "$POSTINST" "$NAME" "$CVERSION" "/usr/share/$PACKAGE_NAME" "$ARCH" "$2"
19 return $?
20 fi
21 echo "WARNING: $POSTINST does not exist." >&2
22 done
23 echo "ERROR: DKMS version is too old and $PACKAGE_NAME was not" >&2
24 echo "built with legacy DKMS support." >&2
25 echo "You must either rebuild $PACKAGE_NAME with legacy postinst" >&2
26 echo "support or upgrade DKMS to a more current version." >&2
27 return 1
28}
29
30case "$1" in
31 configure)
32 dkms_configure
33 ;;
34
35 abort-upgrade|abort-remove|abort-deconfigure)
36 ;;
37
38 *)
39 echo "postinst called with unknown argument \`$1'" >&2
40 exit 1
41 ;;
42esac
43
44# dh_installdeb will replace this with shell code automatically
45# generated by other debhelper scripts.
46
47#DEBHELPER#
48
49exit 0
diff --git a/debian-mod/prerm b/debian-mod/prerm
new file mode 100755
index 0000000..ef13693
--- /dev/null
+++ b/debian-mod/prerm
@@ -0,0 +1,28 @@
1#!/bin/sh
2
3NAME=cmem-mod
4VERSION=4.00.01.08
5
6set -e
7
8case "$1" in
9 remove|upgrade|deconfigure)
10 if [ "`dkms status -m $NAME`" ]; then
11 dkms remove -m $NAME -v $VERSION --all
12 fi
13 ;;
14
15 failed-upgrade)
16 ;;
17
18 *)
19 echo "prerm called with unknown argument \`$1'" >&2
20 exit 1
21 ;;
22esac
23
24#DEBHELPER#
25
26exit 0
27
28
diff --git a/debian-mod/rules b/debian-mod/rules
new file mode 100755
index 0000000..5f8e6ff
--- /dev/null
+++ b/debian-mod/rules
@@ -0,0 +1,54 @@
1#!/usr/bin/make -f
2# -*- makefile -*-
3
4# Uncomment this to turn on verbose mode.
5#export DH_VERBOSE=1
6
7DEB_NAME=cmem-mod-dkms
8NAME=cmem-mod
9VERSION=4.00.01.08
10
11configure: configure-stamp
12configure-stamp:
13 dh_testdir
14 touch configure-stamp
15
16
17build: build-stamp
18
19build-stamp: configure-stamp
20 dh_testdir
21 $(MAKE)
22 touch $@
23
24clean:
25 dh_testdir
26 dh_testroot
27 rm -f build-stamp configure-stamp
28 -$(MAKE) clean
29 dh_clean
30
31install: build
32 dh_testdir
33 dh_testroot
34 dh_prep
35 dh_installdirs
36 $(MAKE) DESTDIR=$(CURDIR)/debian/$(DEB_NAME) NAME=$(NAME) VERSION=$(VERSION) install
37
38binary-arch: build install
39
40binary-indep: build install
41 dh_testdir
42 dh_testroot
43 dh_link
44 dh_strip
45 dh_compress
46 dh_fixperms
47 dh_installdeb
48 dh_shlibdeps
49 dh_gencontrol
50 dh_md5sums
51 dh_builddeb
52
53binary: binary-indep binary-arch
54.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..ad00236
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,10 @@
1cmem for Debian
2-----------------
3
4Please see ./README for a description of the cmem software.
5
6The Debian cmem source package provides:
7
8 1) cmem: Package summary
9
10 -- TI Keystone PPA <ti-keystone-ppa@list.ti.com> Wed, 20 Nov 2013 08:55:22 -0800
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..3b4954e
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
1cmem for Debian
2--------------
3
4<this file describes information about the source package, see Debian policy
5manual section 4.14. You WILL either need to modify or delete this file>
6
7
8
9
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..def5840
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
1cmem (4.00.01.08-0ubuntu1~ppa1) precise; urgency=low
2
3 * First version of cmem
4
5 -- TI Keystone PPA <ti-keystone-ppa@list.ti.com> Wed, 20 Nov 2013 08:55:22 -0800
6
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..dc650df
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,11 @@
1Source: cmem
2Section: misc
3Priority: optional
4Maintainer: TI Keystone PPA <ti-keystone-ppa@list.ti.com>
5Build-Depends: debhelper (>= 8.0.0)
6Standards-Version: 3.9.4
7
8Package: cmem
9Architecture: all
10Depends: ${misc:Depends}
11Description: cmem < Add description >
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..190c3b2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
1This cmem package was debianized by TI Keystone PPA <ti-keystone-ppa@list.ti.com on
2Wed, 20 Nov 2013 08:55:22 -0800.
3
4
5 Copyright (c) 2012-2013, Texas Instruments Incorporated
6
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions
9 are met:
10
11 * Redistributions of source code must retain the above copyright
12 notice, this list of conditions and the following disclaimer.
13
14 * Redistributions in binary form must reproduce the above copyright
15 notice, this list of conditions and the following disclaimer in the
16 documentation and/or other materials provided with the distribution.
17
18 * Neither the name of Texas Instruments Incorporated nor the names of
19 its contributors may be used to endorse or promote products derived
20 from this software without specific prior written permission.
21
22 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
24 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
26 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
29 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
31 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
32 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/install
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..04c2dfb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
1#!/usr/bin/make -f
2# -*- makefile -*-
3
4# Uncomment this to turn on verbose mode.
5export DH_VERBOSE=1
6%:
7 dh $@