manpage info packages

This commit is contained in:
2025-03-22 16:05:37 +01:00
parent 1471e39e50
commit d86c3829f5
4 changed files with 13 additions and 3 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@
pcapmirror
debian/debhelper-build-stamp
debian/pcapmirror.substvars
*.gz

View File

@@ -22,7 +22,7 @@ TARGET = pcapmirror
PREFIX = /usr
# Default rule
all: $(TARGET)
all: $(TARGET) man
# Create executable
$(TARGET): $(OBJS)
@@ -32,6 +32,9 @@ $(TARGET): $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
man:
gzip -9 -c pcapmirror.8 > pcapmirror.8.gz
# Clean up object files and executable
clean:
rm -f -f $(OBJS) $(TARGET)
@@ -40,10 +43,13 @@ clean:
install: $(TARGET)
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
install -D $(TARGET).8 $(DESTDIR)$(PREFIX)/share/man/man8/$(TARGET).8
# Uninstall the executable
uninstall:
rm -f $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
rm -f $(TARGET).8 $(DESTDIR)$(PREFIX)/share/man/man8/$(TARGET).8
# Run the executable (example)
run: $(TARGET)

1
debian/install vendored
View File

@@ -1 +1,2 @@
pcapmirror /usr/bin
pcapmirror.8.gz /usr/share/man/man8/pcapmirror.8.gz

View File

@@ -20,9 +20,11 @@ pcapmirror is a command-line tool for capturing and mirroring network traffic us
%files
%{_bindir}/pcapmirror
%{_mandir}/man1/pcapmirror.8.gz
%license LICENSE
%doc README.md
%changelog
* Sat Mar 22 2025 Matthias Cramer <cramer@freesone.net> 0.2-1
- Initial release of pcapmirror