diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2011-01-16 22:44:12 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2011-01-16 23:07:47 -0800 |
commit | 4d155cbf37ca909daff06dd8c7119274d0861f6c (patch) | |
tree | fe9d460fb46097986fe234fddb3f9bd2935c8642 /Makefile.am | |
parent | 9405281a9e16e55af687c98a83d327946953cc09 (diff) | |
download | vyatta-biosdevname-4d155cbf37ca909daff06dd8c7119274d0861f6c.tar.gz vyatta-biosdevname-4d155cbf37ca909daff06dd8c7119274d0861f6c.zip |
Merge upstream version 0.3.4.
(cherry picked from commit 21eb1c8d6fefa5dcd3a9a800b4add06d5c30c01f)
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am index 80548a8..6b65b5e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,15 +1,19 @@ AUTOMAKE_OPTIONS = subdir-objects SUBDIRS = +EXTRA_DIST = pkg dist_noinst_DATA = biosdevname.rules.in biosdevname.spec.fedora biosdevname.spec.suse biosdevname.1 -CLEANFILES = biosdevname.rules version -biosdevname.rules: biosdevname.rules.in - sed -e 's#/usr/sbin#$(sbindir)#' $(top_srcdir)/biosdevname.rules.in > $(top_builddir)/biosdevname.rules -install-data-local: biosdevname.rules + +CLEANFILES = version +install-data-local: mkdir -p $(DESTDIR)@sysconfdir@/udev/rules.d - $(INSTALL_DATA) $(top_builddir)/biosdevname.rules $(DESTDIR)@sysconfdir@/udev/rules.d/@RULEDEST@ + $(INSTALL_DATA) $(top_srcdir)/biosdevname.rules.in $(DESTDIR)@sysconfdir@/udev/rules.d/71-netdevice.rules + mkdir -p $(DESTDIR)/lib/udev + +uninstall-local: + rm -f $(DESTDIR)@sysconfdir@/udev/rules.d/@RULEDEST@ include src/Makefile.am @@ -34,10 +38,24 @@ srpm: dist deb: dist oldpwd=`pwd` ; \ tmp_dir=`mktemp -d /tmp/$(PACKAGE_NAME).XXXXXXXX` ; \ - cp $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $${tmpdir}/$(PACKAGE_NAME)_$(PACKAGE_VERSION).orig.tar.gz \ +cp $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $${tmp_dir}/$(PACKAGE_NAME)_$(PACKAGE_VERSION).orig.tar.gz ; \ tar -C $${tmp_dir} -xzf $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz ; \ - mv $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/pkg/debian $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/debian ; \ cd $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION) ; \ + mv pkg/debian debian ; \ + rmdir pkg/ ; \ pdebuild --buildresult $$oldpwd/.. ; \ cd - ;\ rm -rf $${tmp_dir} + +sdeb: dist + oldpwd=`pwd` ; \ + tmp_dir=`mktemp -d /tmp/biosdevname.XXXXXXXX` ; \ + cp $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $${tmp_dir}/$(PACKAGE_NAME)_$(PACKAGE_VERSION).orig.tar.gz ; \ + tar -C $${tmp_dir} -xzf $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz ; \ + mv $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/pkg/debian $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/debian ; \ + rmdir pkg/ ; \ + cd $${tmp_dir}/$(PACKAGE_NAME)-$(PACKAGE_VERSION) ; \ + dpkg-buildpackage -S -sa -rfakeroot -k92F0FC09 ; \ + mv ../biosdevname_* $$oldpwd/.. ; \ + cd - ;\ + rm -rf $${tmp_dir} |