Skip to content

Commit ed4f1ce

Browse files
author
Heiko Engel
committed
rpm: postinst ldconfig test, pda_kadapter rpm naming
1 parent 4134e2e commit ed4f1ce

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ rpm: tarball
3535
./package/rpm/configure --version --prefix=$(IPATH)
3636
cp pda-`cat VERSION`.tar.gz package/rpm/
3737
make -C package/rpm/
38-
cp ${HOME}/rpmbuild/RPMS/x86_64/pda-*.rpm .
38+
make -C patches/linux_uio
39+
cp ${HOME}/rpmbuild/RPMS/x86_64/pda*.rpm .
3940

4041
tarball: mrproper
4142
rm -rf pda-`cat VERSION`.tar.gz

package/rpm/pda.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ make
2727
rm -rf $RPM_BUILD_ROOT
2828
make install DESTDIR=$RPM_BUILD_ROOT/%{inst_prefix}/
2929

30+
%post
31+
/sbin/ldconfig
32+
3033
%files
3134
%defattr(-,root,root,-)
3235
%{inst_prefix}/bin/*

patches/linux_uio/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
KDIR := /lib/modules/$(shell uname -r)/build
2-
VERSION := $(shell cat uio_pci_dma.h | grep UIO_PCI_DMA_VERSION | cut -d\" -f2)
2+
VERSION := $(shell uname -r)-$(shell cat uio_pci_dma.h | grep UIO_PCI_DMA_VERSION | cut -d\" -f2)
33

44
all: prepare
55
KDIR=$(KDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) make -C build/

patches/linux_uio/pda_kadapter.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Summary: Kernel adapter for the PDA library
2-
Name: pda_kadapter
2+
Name: pda_kadapter-%(uname -r)
33
Version: 99.99.99
44
Release: 0
55
License: BSD

0 commit comments

Comments
 (0)