My interactive version of pkg_add - finished!

Marin Atanasov dnaeon at
Sat Oct 4 15:01:59 UTC 2008

Michel Talon wrote:
> Marin Atanasov wrote:
>> Should I add something else to it or modify something?
> You should remove a lot, because many implicit rules are already defined 
> in /usr/share/mk/ which is sourced by make automatically. See for
> example 
> /usr/src/usr.sbin/pkg_install/add/Makefile
> to discover how little is needed.
Thanks, I've read it and now my Makefile is as follows:
PROG=   pkg_add_it
SRCS=   fnode.c explode.c scan_directory.c scan_index_file.c pkg_add_it.c

.include <>
.include <>

It builds, installs, cleans, etc.. but when I `make install' it finishes 
successfully, but does not actually install the files - `pkg_add_it' and 

Perhaps I'm missing something here.. but what?
Thanks, again!

Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org

More information about the freebsd-ports mailing list