Commits

Bryan O'Sullivan committed dc917fb

Install and package man pages.

Comments (0)

Files changed (2)

 etcdir ?= $(prefix)/etc/netplug
 initdir ?= $(prefix)/etc/rc.d/init.d
 scriptdir ?= $(prefix)/etc/netplug.d
+mandir ?= $(prefix)/usr/share/man
 
 install_opts := -o root -g root
 
 
 install:
 	install -d $(install_opts) -m 755 $(bindir) $(etcdir) $(scriptdir) \
-		$(initdir)
+		$(initdir) $(mandir)/man8
 	install $(install_opts) -m 755 netplugd $(bindir)
 	install -C $(install_opts) -m 644 etc/netplugd.conf $(etcdir)
 	install -C $(install_opts) -m 755 scripts/netplug $(scriptdir)
 	install $(install_opts) -m 755 scripts/rc.netplugd $(initdir)/netplugd
+	install -C $(install_opts) -m 444 man/man8/netplugd.8 $(mandir)/man8
 
 bk_root := $(shell bk root)
 tar_root := netplug-$(version)
 %config /etc/netplug/netplugd.conf
 /etc/netplug.d
 /etc/rc.d/init.d/netplugd
+%docdir /usr/share/man/*
+/usr/share/man/*/*
 
 %doc COPYING README TODO
 
 %changelog
 * Tue Aug 26 2003 Bryan O'Sullivan <bos@serpentine.com> - 
 - Initial build.
-
-