openxray: 2188-november-2023-rc1 -> 2921-january-2025-rc1 (#375925)
[NixPkgs.git] / pkgs / by-name / li / libuldaq / 0001-uldaq.patch
blob97375283cd64299372e0ccd916719cd489c4f150
1 diff --git a/Makefile.am b/Makefile.am
2 index 0e69cd4..b4a1f1a 100644
3 --- a/Makefile.am
4 +++ b/Makefile.am
5 @@ -26,7 +26,7 @@ dist_pkgconfig_DATA=libuldaq.pc
6 # fpga/USB_DIO32HS.bin
8 if OS_LINUX
9 -rulesdatadir=/lib/udev/rules.d/
10 +rulesdatadir=$(libdir)/udev/rules.d/
11 dist_rulesdata_DATA=rules/50-uldaq.rules
12 endif
14 @@ -42,14 +42,6 @@ dist-up: dist
15 mkdir -p $(reldir)
16 cp $(distdir).tar.bz2 $(reldir)
18 -if OS_LINUX
19 -install-data-hook:
20 - udevadm control --reload-rules && \
21 - test -f "/etc/redhat-release" && echo "/usr/local/lib" > /etc/ld.so.conf.d/uldaq.conf || echo "" && \
22 - test -f "/etc/arch-release" && echo "/usr/local/lib" > /etc/ld.so.conf.d/uldaq.conf || echo "" && \
23 - ldconfig
24 -endif
26 if OS_LINUX
27 uninstall-hook:
28 test -f "/etc/ld.so.conf.d/uldaq.conf" && rm "/etc/ld.so.conf.d/uldaq.conf" || echo ""