Introduction
Introduction Statistics Contact Development Disclaimer Help
make man page (8) to (1), use VERSION - sdhcp - simple dhcp client
git clone git://git.codemadness.org/sdhcp
Log
Files
Refs
LICENSE
---
commit d02e213601a5432e7efcd1bbeab1bff151ee04fe
parent 61b1942be50463eb03c55c055df4b8f62a4549e2
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 25 Apr 2014 20:57:00 +0200
make man page (8) to (1), use VERSION
and fix uninstall rule (/bin to /sbin)
Signed-off-by: Hiltjo Posthuma <[email protected]>
Diffstat:
A LICENSE | 2 ++
M Makefile | 18 +++++++++---------
A sdhcp.1 | 16 ++++++++++++++++
D sdhcp.8 | 16 ----------------
4 files changed, 27 insertions(+), 25 deletions(-)
---
diff --git a/LICENSE b/LICENSE
@@ -0,0 +1,2 @@
+David Galos (galosd83 (at) students.rowan.edu)
+Hiltjo Posthuma <hiltjo at codemadness dot org>
diff --git a/Makefile b/Makefile
@@ -11,7 +11,7 @@ SRC = sdhcp.c
OBJ = $(SRC:.c=.o) $(LIB)
BIN = $(SRC:.c=)
-MAN = $(SRC:.c=.8)
+MAN = $(SRC:.c=.1)
all: options binlib
@@ -46,16 +46,16 @@ install: all
@mkdir -p $(DESTDIR)$(PREFIX)/sbin
@cp -f $(BIN) $(DESTDIR)$(PREFIX)/sbin
@cd $(DESTDIR)$(PREFIX)/sbin && chmod 755 $(BIN)
- @echo installing manual pages to $(DESTDIR)$(MANPREFIX)/man8
- @mkdir -p $(DESTDIR)$(MANPREFIX)/man8
- @for m in $(MAN); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)…
- @cd $(DESTDIR)$(MANPREFIX)/man8 && chmod 644 $(MAN)
+ @echo installing manual pages to $(DESTDIR)$(MANPREFIX)/man1
+ @mkdir -p $(DESTDIR)$(MANPREFIX)/man1
+ @for m in $(MAN); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)…
+ @cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN)
uninstall:
- @echo removing executables from $(DESTDIR)$(PREFIX)/bin
- @cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN)
- @echo removing manual pages from $(DESTDIR)$(MANPREFIX)/man8
- @cd $(DESTDIR)$(MANPREFIX)/man8 && rm -f $(MAN)
+ @echo removing executables from $(DESTDIR)$(PREFIX)/sbin
+ @cd $(DESTDIR)$(PREFIX)/sbin && rm -f $(BIN)
+ @echo removing manual pages from $(DESTDIR)$(MANPREFIX)/man1
+ @cd $(DESTDIR)$(MANPREFIX)/man1 && rm -f $(MAN)
clean:
@echo cleaning
diff --git a/sdhcp.1 b/sdhcp.1
@@ -0,0 +1,16 @@
+.TH SDHCP-VERSION 1
+.SH NAME
+sdhcp \- a simple dhcp client
+.SH SYNOPSIS
+.B sdhcp
+.RB [interface]
+.SH DESCRIPTION
+sdhcp is a simple, tiny dhcp client. It runs until it enters the "Bound"
+state, then forks to the background and runs as a daemon to keep
+the lease alive.
+.SH BUGS
+I'm sure there's plenty. It only currently supports a small subset of
+dhcp options, and has been untested on larger networks. It ignores most of
+the dchp options it understands. Send bug reports to me!
+.SH AUTHOR
+see LICENSE file
diff --git a/sdhcp.8 b/sdhcp.8
@@ -1,16 +0,0 @@
-.TH SDHCP 1
-.SH NAME
-sdhcp \- a simple dhcp client
-.SH SYNOPSIS
-.B sdhcp
-.RB [interface]
-.SH DESCRIPTION
-sdhcp is a simple, tiny dhcp client. It runs until it enters the "Bound"
-state, then forks to the background and runs as a daemon to keep
-the lease alive.
-.SH BUGS
-I'm sure there's plenty. It only currently supports a small subset of
-dhcp options, and has been untested on larger networks. It ignores most of
-the dchp options it understands. Send bug reports to me!
-.SH AUTHOR
-David Galos (galosd83 (at) students.rowan.edu)
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.