Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
`pkg add` is now an alias for `pkg install`
Vsevolod Stakhov committed 12 years ago
commit 492cbd3db8cae136b0299cb4d1dad7b6a3d88bc6
parent d505d07
3 files changed +9 -5
modified configure.ac
@@ -16,6 +16,7 @@ AC_CONFIG_MACRO_DIR([m4])
AC_C_CONST
AC_TYPE_SIZE_T
AC_CHECK_FUNCS(memmove bcopy)
+
AC_PROG_LN_S

AC_CHECK_HEADERS_ONCE([fcntl.h unistd.h])
AC_TYPE_OFF_T
modified src/Makefile.am
@@ -37,8 +37,7 @@ pkg_SOURCES= add.c \
			version.c \
			which.c
			
-
dist_man_MANS= pkg-add.8 \
-
			pkg-annotate.8 \
+
dist_man_MANS= pkg-annotate.8 \
			pkg-audit.8 \
			pkg-autoremove.8 \
			pkg-backup.8 \
@@ -84,4 +83,8 @@ pkg_static_LDADD= $(top_builddir)/libpkg/libpkg_static.la \
pkg_static_LDFLAGS=	-all-static -static-libtool-libs -pthread
sbin_PROGRAMS=		pkg pkg-static

-
dist_sysconf_DATA=	pkg.conf.sample

\ No newline at end of file
+
dist_sysconf_DATA=	pkg.conf.sample
+

+
install-data-hook:
+
	$(LN_S) -s $(DESTDIR)$(man8dir)/pkg-install.8 \
+
	$(DESTDIR)$(man8dir)/pkg-add.8

\ No newline at end of file
modified src/main.c
@@ -71,7 +71,7 @@ static struct commands {
	int (*exec)(int argc, char **argv);
	void (* const usage)(void);
} cmd[] = {
-
	{ "add", "Registers a package and installs it on the system", exec_add, usage_add},
+
	{ "add", "Compatibility alias for install", exec_install, usage_install},
	{ "annotate", "Add, modify or delete tag-value style annotations on packages", exec_annotate, usage_annotate},
	{ "audit", "Reports vulnerable packages", exec_audit, usage_audit},
	{ "autoremove", "Removes orphan packages", exec_autoremove, usage_autoremove},
@@ -85,7 +85,7 @@ static struct commands {
	{ "fetch", "Fetches packages from a remote repository", exec_fetch, usage_fetch},
	{ "help", "Displays help information", exec_help, usage_help},
	{ "info", "Displays information about installed packages", exec_info, usage_info},
-
	{ "install", "Installs packages from remote package repositories", exec_install, usage_install},
+
	{ "install", "Installs packages from remote package repositories and local archives", exec_install, usage_install},
	{ "lock", "Locks package against modifications or deletion", exec_lock, usage_lock},
	{ "plugins", "Manages plugins and displays information about plugins", exec_plugins, usage_plugins},
	{ "query", "Queries information about installed packages", exec_query, usage_query},