diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 index 463fc1cad..000000000 --- a/debian/README.Debian +++ /dev/null @@ -1,25 +0,0 @@ -ngcp-mediaproxy-ng-kernel for Debian ------------------------------------- - -This package only works with kernels >= 2.6.32. - -Instructions for usage -~~~~~~~~~~~~~~~~~~~~~~ - -1) module-assistant: - -% sudo apt-get install linux-headers-$(uname -r) -% sudo apt-get install ngcp-mediaproxy-ng-kernel-source -% sudo m-a prepare -% sudo m-a -v -f -l $(uname -r) -k /usr/src/linux-headers-$(uname -r) a-b ngcp-mediaproxy-ng-kernel - -How to debug build process: - -% sudo m-a -d -v --text-mode -l $(uname -r) -k /usr/src/linux-headers-$(uname -r) a-i ngcp-mediaproxy-ng-kernel - -2) DKMS: - -% sudo apt-get install ngcp-mediaproxy-ng-kernel-dkms -% sudo dkms add -m ngcp-mediaproxy-ng -v 0.1 -% sudo dkms build --kernelsourcedir /usr/src/linux-headers-$(uname -r) -m ngcp-mediaproxy-ng -v 0.1 -% sudo dkms install -m ngcp-mediaproxy-ng -v 0.1 diff --git a/debian/control b/debian/control index 199c2c72b..039762bbc 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,7 @@ Build-Depends: debhelper (>= 5), libpcre3-dev, libssl-dev, libxmlrpc-c3-dev (>= 1.16.07) | libxmlrpc-core-c3-dev (>= 1.16.07), + markdown, zlib1g-dev Standards-Version: 3.9.3 Homepage: http://sipwise.com/ diff --git a/debian/rules b/debian/rules index 18d3d107d..f0072d9f0 100755 --- a/debian/rules +++ b/debian/rules @@ -48,6 +48,7 @@ clean: rm -f iptables-extension/libxt_MEDIAPROXY.so rm -f daemon/mediaproxy-ng daemon/build_time.h daemon/.depend kernel-module/.xt_MEDIAPROXY.o.d rm -rf kernel-module/.tmp_versions + rm debian/README.html.gz debian/README.md.gz dh_clean -rm -rf debian/build @@ -67,7 +68,7 @@ install: build # Copy the needed debian/ pieces to the proper location cp debian/*.modules.in* debian/$(psource)/usr/src/modules/$(sname)/debian - cp debian/control debian/changelog debian/copyright debian/README.Debian \ + cp debian/control debian/changelog debian/copyright \ debian/compat debian/$(psource)/usr/src/modules/$(sname)/debian/ install -m 0755 debian/rules.modules debian/$(psource)/usr/src/modules/$(sname)/debian/rules cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules @@ -75,13 +76,17 @@ install: build # Prepare dkms.conf from the dkms.conf.in template sed "s/__VERSION__/$(sversion)/g" debian/dkms.conf.in > debian/$(pdkms)/usr/src/$(sname)-$(sversion)/dkms.conf + # markdown README + markdown README.md | gzip -9 > debian/README.html.gz + gzip -9 < README.md > debian/README.md.gz + dh_install %: @echo "--- Building: $@" dh_installdirs -p$@ -P$(b)/$@ dh_link -p$@ -P$(b)/$@ - dh_installdocs -p$@ -P$(b)/$@ + dh_installdocs -p$@ -P$(b)/$@ debian/README.md.gz debian/README.html.gz dh_installchangelogs -p$@ -P$(b)/$@ dh_installinit -p$@ -P$(b)/$@ dh_install -p$@ -P$(b)/$@