Package: madwimax Version: 0.1.1-1.1 Tags: patch User: p...@hungry.com Usertags: appstream-modalias
Here is a patch to add Appstream metainfo XML announcing the hardware handled by this package. Including this information in the package will ensure programs mapping hardware to packages using Appstream information, like the isenkram package, will know that this package is useful on machines where the hardware ID is discovered. As part of the patch, I decided to switch the package over to using dh with compat level 13 to get autoreconf automatically executed for the Makefile.am patch to take effect. A side effect of this is that the build will enable hardening flags in the compiler. Note, the homepage URL is no longer working, but I included it as it is the same listed in debian/control. diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7f8f011..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -7 diff --git a/debian/control b/debian/control index e5ffd34..9eddb6e 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: madwimax Section: admin Priority: optional Maintainer: Alexander Gordeev <lasa...@lvk.cs.msu.su> -Build-Depends: debhelper (>= 7), autotools-dev, libusb-1.0-0-dev, pkg-config, asciidoc, docbook-xml, docbook2x +Build-Depends: debhelper-compat (= 13), autotools-dev, libusb-1.0-0-dev, pkg-config, asciidoc, docbook-xml, docbook2x Standards-Version: 3.8.1 Homepage: http://code.google.com/p/madwimax/ Vcs-Browser: http://github.com/ago/madwimax diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..9cff850 --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,50 @@ +Description: Added AppStream metainfo XML with hardware provide info. + This allow isenkram to propose this package when the hardware is + present. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-07-22 +--- +Index: madwimax-0.1.1/Makefile.am +=================================================================== +--- madwimax-0.1.1.orig/Makefile.am 2024-07-22 22:58:24.574963590 +0200 ++++ madwimax-0.1.1/Makefile.am 2024-07-22 22:58:24.566963496 +0200 +@@ -1 +1,6 @@ + SUBDIRS = include man src scripts ++ ++EXTRA_DIST = com.google.code.madwimax.metainfo.xml ++ ++dist_metainfo_DATA = com.google.code.madwimax.metainfo.xml ++metainfodir = $(datarootdir)/metainfo +Index: madwimax-0.1.1/com.google.code.madwimax.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ madwimax-0.1.1/com.google.code.madwimax.metainfo.xml 2024-07-22 23:00:39.996564760 +0200 +@@ -0,0 +1,27 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component type="desktop"> ++ <id>com.google.code.madwimax</id> ++ <metadata_license>MIT</metadata_license> ++ <name>madwimax</name> ++ <summary>user-space driver for mWiMAX equipment based on Samsung CMC-730</summary> ++ <description> ++ <p>madwimax is an experimental reverse-engineered Linux driver for ++ mobile WiMAX (802.16e) devices based on Samsung CMC-730 chip. These ++ devices are currently supported:</p> ++ <ul> ++ <li>Samsung SWC-U200</li> ++ <li>Samsung SWC-E100</li> ++ <li>Samsung SWM-S10R (it is built in Samsung NC-10 netbook)</li> ++ </ul> ++ <p>This package contains the user-space standalone implementation ++ of the driver. It requires Universal TUN/TAP support in your ++ kernel.</p> ++ </description> ++ <url type="homepage">http://code.google.com/p/madwimax/</url> ++ <provides> ++ <modalias>usb:v04E8p6761d*</modalias> ++ <modalias>usb:v04E9p6761d*</modalias> ++ <modalias>usb:v04E8p6731d*</modalias> ++ <modalias>usb:v04E8p6780d*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..42e8b1a --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +1000-appstream-metainfo.patch diff --git a/debian/rules b/debian/rules index 3c62679..218df65 100755 --- a/debian/rules +++ b/debian/rules @@ -1,94 +1,8 @@ #!/usr/bin/make -f # -*- makefile -*- -# 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 - -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) -CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) -else -CROSS= --build $(DEB_BUILD_GNU_TYPE) -endif - - - -config.status: configure - dh_testdir -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - cp -f /usr/share/misc/config.sub config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - cp -f /usr/share/misc/config.guess config.guess -endif - ./configure $(CROSS) \ - --prefix=/usr \ - --sysconfdir=/etc \ - --with-udev-dir=/usr/lib/udev \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" - - -build: build-stamp - -build-stamp: config.status - dh_testdir - $(MAKE) - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - - [ ! -f Makefile ] || $(MAKE) distclean - rm -f config.sub config.guess - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_prep - dh_installdirs - - $(MAKE) DESTDIR=$(CURDIR)/debian/madwimax install - - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs ChangeLog - dh_installdocs - dh_installexamples - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch - -build-arch: build -build-indep: build - -.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install +%: + dh $@ -- Happy hacking Petter Reinholdtsen