diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-04 13:19:40 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-04 13:19:40 +0000 |
commit | d347e99fa15953082ebc6ecd9ab275f230160286 (patch) | |
tree | 1562e32bb52a4dd668c5dbaa5f78b7e726bcfb68 /usr.sbin/pkg_add/Makefile | |
parent | 6f138fc6e7d30828b49aac1867054afe01ffd608 (diff) |
move code around, so that commands can be used as modules.
pkg becomes the start hub, which does nothing except require the
correct module.
Saner code wrt Add/Delete, and more sharing.
Diffstat (limited to 'usr.sbin/pkg_add/Makefile')
-rw-r--r-- | usr.sbin/pkg_add/Makefile | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/usr.sbin/pkg_add/Makefile b/usr.sbin/pkg_add/Makefile index c392998bddd..06e31691b53 100644 --- a/usr.sbin/pkg_add/Makefile +++ b/usr.sbin/pkg_add/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.61 2010/04/24 14:33:12 espie Exp $ +# $OpenBSD: Makefile,v 1.62 2010/06/04 13:19:39 espie Exp $ .include <bsd.own.mk> @@ -12,6 +12,7 @@ POD2MAN=/usr/bin/pod2man PACKAGES= \ OpenBSD/Add.pm \ + OpenBSD/AddCreateDelete.pm \ OpenBSD/AddDelete.pm \ OpenBSD/ArcCheck.pm \ OpenBSD/CollisionReport.pm \ @@ -39,8 +40,12 @@ PACKAGES= \ OpenBSD/PackingElement.pm \ OpenBSD/PackingList.pm \ OpenBSD/Paths.pm \ + OpenBSD/PkgAdd.pm \ OpenBSD/PkgCfl.pm \ OpenBSD/PkgConfig.pm \ + OpenBSD/PkgCreate.pm \ + OpenBSD/PkgDelete.pm \ + OpenBSD/PkgInfo.pm \ OpenBSD/PkgSpec.pm \ OpenBSD/ProgressMeter/Term.pm \ OpenBSD/ProgressMeter.pm \ @@ -64,14 +69,16 @@ PACKAGEDIRS=OpenBSD OpenBSD/PackageRepository OpenBSD/ProgressMeter \ OpenBSD/LibSpec SCRIPTS= \ - pkg_add \ - pkg_info \ - pkg_create \ - pkg_delete \ pkg_merge \ pkg_mklocatedb \ pkg +SCRIPTS_LNK = \ + pkg pkg_add \ + pkg pkg_create \ + pkg pkg_delete \ + pkg pkg_info + LIBBASE=/usr/libdata/perl5 PODS= \ @@ -142,7 +149,9 @@ realinstall: ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i .endfor - +.for i j in ${SCRIPTS_LNK} + cd ${DESTDIR}${BINDIR} && ln -f $i $j +.endfor .include <bsd.prog.mk> .PHONY: mansrc.build |