Replace afterinstall: hack from r111083 with 'make delete-old' functionality.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
bdrewery 2015-09-19 03:46:10 +00:00
parent deb97713e0
commit 8150777448
2 changed files with 6 additions and 8 deletions

View File

@ -7234,6 +7234,12 @@ OLD_LIBS+=usr/lib/libposix1e.so.2
OLD_LIBS+=usr/lib/libskey.so.2
OLD_LIBS+=usr/lib/libusbhid.so.0
OLD_LIBS+=usr/lib/libvgl.so.2
# 20030218: OpenSSL 0.9.7 import
OLD_FILES+=usr/include/des.h
OLD_FILES+=usr/lib/libdes.a
OLD_FILES+=usr/lib/libdes.so
OLD_LIBS+=usr/lib/libdes.so.3
OLD_FILES+=usr/lib/libdes_p.a
# 200302XX
OLD_LIBS+=usr/lib/libacl.so.3
OLD_LIBS+=usr/lib/libasn1.so.5

View File

@ -402,14 +402,6 @@ opensslconf.h: opensslconf-${MACHINE_CPUARCH}.h
.endif
${CP} ${.ALLSRC} ${.TARGET}
OLDSYMLINKS+= libdes.a libdes.so libdes.so.3 libdes_p.a
afterinstall:
@${ECHO} "Removing stale symlinks."
rm -f ${DESTDIR}${INCLUDEDIR}/des.h
.for symlink in ${OLDSYMLINKS}
rm -f ${DESTDIR}${LIBDIR}/${symlink}
.endfor
.include <bsd.lib.mk>
.if ${MACHINE_CPUARCH} == "amd64"