8 link
$(PKG
)/test-file
$@
10 build-hook
: $(PKG
)/test-hardlink
13 rm -f
$(PKG
)/test-hardlink
16 $(DPKG_DIVERT_ADD
) /test-file
17 $(DPKG_DIVERT_ADD
) /test-hardlink
18 # test if unpack can divert a hardlink
19 $(DPKG_INSTALL
) pkg-hardlink.deb
20 $(call pkg_is_installed
,pkg-hardlink
)
21 test -f
'$(DPKG_INSTDIR)/test-file.distrib'
22 test -f
'$(DPKG_INSTDIR)/test-hardlink.distrib'
23 cmp
'$(DPKG_INSTDIR)/test-file.distrib' \
24 '$(DPKG_INSTDIR)/test-hardlink.distrib'
25 test "`stat -c '%i' '$(DPKG_INSTDIR)/test-file.distrib'`" = \
26 "`stat -c '%i' '$(DPKG_INSTDIR)/test-hardlink.distrib'`"
29 $(DPKG_PURGE
) pkg-hardlink
30 $(DPKG_DIVERT_DEL
) /test-file
31 $(DPKG_DIVERT_DEL
) /test-hardlink