As I am no Makefile expert, I am pretty sure you don't like
my changes. Please modify it to your likings, so that the result
will stay the same.
If going the OBSD-specific path, it should be installed -m 555.
mkdir -p $(MANDIR)/man5/
cp files/olsrd.conf.5.gz $(MANDIR)/man5/$(CFGNAME).5.gz
endif
+ifneq ($(RCDIR),)
+ cp $(RCFILE) $(RCDIR)/olsrd
+endif
uninstall_olsrd: uninstall_bin
ifneq ($(MANDIR),)
endif
rm -f $(CFGFILE) $(CFGFILE).new
rmdir -p $(ETCDIR) || true
+ifneq ($(RCDIR),)
+ rm -f $(RCDIR)/olsrd
+ rmdir -p $(RCDIR) || true
+endif
tags:
$(TAGCMD) -o $(TAGFILE) $(TAG_SRCS)
LIBDIR = $(PREFIX)/lib
DOCDIR = $(PREFIX)/share/doc
MANDIR = $(PREFIX)/man
+RCDIR = /etc/rc.d
+
+RCFILE = openbsd/olsrd.rcd
SRCS += $(wildcard src/bsd/*.c src/unix/*.c)
HDRS += $(wildcard src/bsd/*.h src/unix/*.h)