50f56e483a
later at pkg_delete time to verify that you're deleting what you added. This, of course, does NOT cover the case where a file you still need hasn't changed! That's a tougher problem to solve, and this provides only the minimal amount of safety belt. MD5 checksums are stored in comment fields, so packages produced with these tools are backwards compatible with the older ones.
18 lines
377 B
Makefile
18 lines
377 B
Makefile
PROG= pkg_info
|
|
CFLAGS+= ${DEBUG} -I${.CURDIR}/../lib
|
|
|
|
.if exists(${.OBJDIR}/../lib)
|
|
LDADD+= -L${.OBJDIR}/../lib -linstall
|
|
DPADD+= ${.OBJDIR}/../lib/libinstall.a
|
|
.else
|
|
LDADD+= -L${.CURDIR}/../lib -linstall
|
|
DPADD+= ${.CURDIR}/../lib/libinstall.a
|
|
.endif
|
|
|
|
LDADD+= -lftpio -lmd
|
|
DPADD+= ${LIBFTPIO} ${LIBMD}
|
|
|
|
SRCS= main.c perform.c show.c
|
|
|
|
.include <bsd.prog.mk>
|