My interactive version of pkg_add - finished!

Marin Atanasov dnaeon at gmail.com
Sat Oct 4 16:12:59 UTC 2008


Marin Atanasov wrote:
> 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 <bsd.port.subdir.mk>
> .include <bsd.prog.mk>
>
> It builds, installs, cleans, etc.. but when I `make install' it 
> finishes successfully, but does not actually install the files - 
> `pkg_add_it' and `pkg_add_it.1'
>
> Perhaps I'm missing something here.. but what?
> Thanks, again!
>

I figured it out - after adding these lines to my Makefile everything is 
ok now:
do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/pkg_add_it ${PREFIX}/sbin/pkg_add_it
        ${INSTALL_MAN} ${WRKSRC}/pkg_add_it.1 ${MAN1PREFIX}/man/man1

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



More information about the freebsd-ports mailing list