]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Further tweaks for the module source packages
authorRuss Allbery <rra@debian.org>
Fri, 13 Feb 2009 18:34:47 +0000 (10:34 -0800)
committerRuss Allbery <rra@debian.org>
Fri, 13 Feb 2009 18:34:47 +0000 (10:34 -0800)
Ensure that config.sub and make_vnode.pl are executable before building
the source package.  Don't include the debian directory in the DKMS
package.

debian/rules

index f526723038a847cbf48bdb8ef2b14ec234eff601..d12740fadc1fbedfee0cd04a417e34c9d7d343fb 100755 (executable)
@@ -97,7 +97,8 @@ build-stamp:
            --enable-bos-new-config \
            --enable-debug --enable-lwp-debug \
            $(DEBIAN_OPT_FLAGS) $(SYSTEM)
-       chmod a+x src/libafs/make_kbuild_makefile.pl
+       chmod a+x config.sub src/libafs/make_kbuild_makefile.pl \
+           src/config/make_vnode.pl
        dh build --after configure
        $(MAKE) libafs_tree
        touch $@
@@ -137,6 +138,7 @@ install-stamp: build-stamp
        install -d debian/$(dkmspkg)/usr/src
        mv debian/$(srcpkg)/usr/src/modules/$(package) \
            debian/$(dkmspkg)/usr/src/openafs-$(VERSION)
+       rm -rf debian/$(dkmspkg)/usr/src/openafs-$(VERSION)/debian
        rmdir debian/$(srcpkg)/usr/src/modules
        sed -e 's/[@]VERSION[@]/$(VERSION)/' debian/dkms.conf.in \
            > debian/$(dkmspkg)/usr/src/openafs-$(VERSION)/dkms.conf