diff options
author | Sam Nelson | 2013-12-06 12:03:48 -0600 |
---|---|---|
committer | Chris Ring | 2013-12-11 17:23:33 -0600 |
commit | b80fd3a1a336b43c0da4c14367ffebda1cd9b461 (patch) | |
tree | 19fa3227040716d40f09994692d26e4d1e057a57 | |
download | luppa-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.Debian | 11 | ||||
-rw-r--r-- | debian-mod/changelog | 6 | ||||
-rw-r--r-- | debian-mod/cmem-mod-dkms.install | 2 | ||||
-rw-r--r-- | debian-mod/compat | 1 | ||||
-rw-r--r-- | debian-mod/control | 11 | ||||
-rw-r--r-- | debian-mod/copyright | 33 | ||||
-rw-r--r-- | debian-mod/dirs | 1 | ||||
-rw-r--r-- | debian-mod/dkms.conf | 9 | ||||
-rwxr-xr-x | debian-mod/postinst | 49 | ||||
-rwxr-xr-x | debian-mod/prerm | 28 | ||||
-rwxr-xr-x | debian-mod/rules | 54 | ||||
-rw-r--r-- | debian/README.Debian | 10 | ||||
-rw-r--r-- | debian/README.source | 9 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 11 | ||||
-rw-r--r-- | debian/copyright | 33 | ||||
-rw-r--r-- | debian/install | 0 | ||||
-rwxr-xr-x | debian/rules | 7 |
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 @@ | |||
1 | cmem-mod DKMS module for Debian | ||
2 | ----------------- | ||
3 | |||
4 | Please see ./README for a description of the cmem-mod software. | ||
5 | |||
6 | The 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 @@ | |||
1 | cmem-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 | ||
2 | debian/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 @@ | |||
1 | Source: cmem-mod-dkms | ||
2 | Section: admin | ||
3 | Priority: extra | ||
4 | Maintainer: TI Keystone PPA <ti-keystone-ppa@list.ti.com> | ||
5 | Build-Depends: debhelper (>= 7), dkms | ||
6 | Standards-Version: 3.8.1 | ||
7 | |||
8 | Package: cmem-mod-dkms | ||
9 | Architecture: all | ||
10 | Depends: dkms (>= 1.95), ${misc:Depends} | ||
11 | Description: 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 @@ | |||
1 | This package was debianized by TI Keystone PPA <ti-keystone-ppa@list.ti.com on | ||
2 | Wed, 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 @@ | |||
1 | PACKAGE_VERSION="4.00.01.08" | ||
2 | PACKAGE_NAME="cmem-mod" | ||
3 | CLEAN="make -f lu.mak modules_clean" | ||
4 | BUILT_MODULE_NAME="cmemk" | ||
5 | BUILT_MODULE_LOCATION="src/cmem/module/" | ||
6 | DEST_MODULE_LOCATION="/kernel/../extra/cmemk/" | ||
7 | MAKE="make -f lu.mak module ARCH=arm KVER=$kernelver KERNEL_INSTALL_DIR=$kernel_source_dir TOOLCHAIN_PREFIX=" | ||
8 | AUTOINSTALL="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 | |||
7 | set -e | ||
8 | |||
9 | NAME=cmem-mod | ||
10 | PACKAGE_NAME=$NAME-dkms | ||
11 | DEB_NAME=$(echo $PACKAGE_NAME | sed 's,_,-,') | ||
12 | CVERSION=`dpkg-query -W -f='${Version}' $DEB_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` | ||
13 | ARCH=`dpkg --print-architecture` | ||
14 | |||
15 | dkms_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 | |||
30 | case "$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 | ;; | ||
42 | esac | ||
43 | |||
44 | # dh_installdeb will replace this with shell code automatically | ||
45 | # generated by other debhelper scripts. | ||
46 | |||
47 | #DEBHELPER# | ||
48 | |||
49 | exit 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 | |||
3 | NAME=cmem-mod | ||
4 | VERSION=4.00.01.08 | ||
5 | |||
6 | set -e | ||
7 | |||
8 | case "$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 | ;; | ||
22 | esac | ||
23 | |||
24 | #DEBHELPER# | ||
25 | |||
26 | exit 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 | |||
7 | DEB_NAME=cmem-mod-dkms | ||
8 | NAME=cmem-mod | ||
9 | VERSION=4.00.01.08 | ||
10 | |||
11 | configure: configure-stamp | ||
12 | configure-stamp: | ||
13 | dh_testdir | ||
14 | touch configure-stamp | ||
15 | |||
16 | |||
17 | build: build-stamp | ||
18 | |||
19 | build-stamp: configure-stamp | ||
20 | dh_testdir | ||
21 | $(MAKE) | ||
22 | touch $@ | ||
23 | |||
24 | clean: | ||
25 | dh_testdir | ||
26 | dh_testroot | ||
27 | rm -f build-stamp configure-stamp | ||
28 | -$(MAKE) clean | ||
29 | dh_clean | ||
30 | |||
31 | install: 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 | |||
38 | binary-arch: build install | ||
39 | |||
40 | binary-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 | |||
53 | binary: 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 @@ | |||
1 | cmem for Debian | ||
2 | ----------------- | ||
3 | |||
4 | Please see ./README for a description of the cmem software. | ||
5 | |||
6 | The 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 @@ | |||
1 | cmem for Debian | ||
2 | -------------- | ||
3 | |||
4 | <this file describes information about the source package, see Debian policy | ||
5 | manual 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 @@ | |||
1 | cmem (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 @@ | |||
1 | Source: cmem | ||
2 | Section: misc | ||
3 | Priority: optional | ||
4 | Maintainer: TI Keystone PPA <ti-keystone-ppa@list.ti.com> | ||
5 | Build-Depends: debhelper (>= 8.0.0) | ||
6 | Standards-Version: 3.9.4 | ||
7 | |||
8 | Package: cmem | ||
9 | Architecture: all | ||
10 | Depends: ${misc:Depends} | ||
11 | Description: 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 @@ | |||
1 | This cmem package was debianized by TI Keystone PPA <ti-keystone-ppa@list.ti.com on | ||
2 | Wed, 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. | ||
5 | export DH_VERBOSE=1 | ||
6 | %: | ||
7 | dh $@ | ||