Группа :: Безопасность/Сети
Пакет: shapercontrol
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
shapercontrol-1.3.4/ 0000755 0000000 0000000 00000000000 11654250521 0014401 5 ustar 00root root 0000000 0000000 shapercontrol-1.3.4/Makefile 0000644 0000000 0000000 00000003023 11654250521 0016037 0 ustar 00root root 0000000 0000000 PROG=sc
VERSION=1.3.4
ARCH=$(PROG)-$(VERSION).tar.bz2
DESTDIR?=/usr/local/sbin
MANDIR?=/usr/local/share/man
INITDIR?=/etc/init.d
CFGDIR=/etc/sc
CLFILES?=sc.8 sc.conf.5 $(ARCH) *.batch
man: sc.8 sc.conf.5
sc.8: sc
pod2man --section=8 --release=" " \
--center="Linux System Manager's Manual" $^ > $@
sc.conf.5: sc.conf.pod
pod2man --section=5 --release=" " --center=" " $^ > $@
help:
@echo "Targets:" ;\
echo " clean clean output files" ;\
echo " install install program" ;\
echo " help show this message" ;\
echo " man (default) generate manpages" ;\
echo " srcdist create archive with source distribution" ;\
echo " uninstall uninstall program"
install: sc sc.init sc.conf.5 sc.8 sc.conf
install -D -o root -g root -m 755 $(PROG) $(DESTDIR)
install -D -o root -g root -m 755 $(PROG).init $(INITDIR)/$(PROG)
install -D -o root -g root -m 644 sc.8 $(MANDIR)/man8
install -D -o root -g root -m 644 sc.conf.5 $(MANDIR)/man5
mkdir -p $(CFGDIR)
if [ -f $(CFGDIR)/sc.conf ]; then \
install -D -o root -g root -m 644 sc.conf $(CFGDIR)/sc.conf.default ;\
else \
install -D -o root -g root -m 644 sc.conf $(CFGDIR) ;\
fi
uninstall:
-rm $(DESTDIR)/sc
-rm $(INITDIR)/sc
-rm $(MANDIR)/man8/sc.8
-rm $(MANDIR)/man5/sc.conf.5
-[ -f $(MANDIR)/man8/sc.8.gz ] && rm $(MANDIR)/man8/sc.8.gz
-[ -f $(MANDIR)/man5/sc.conf.5.gz ] && rm $(MANDIR)/man5/sc.conf.5.gz
reinstall: uninstall install
clean:
rm -f $(CLFILES)
srcdist:
hg archive -t tbz2 -X .hgtags -X .hgignore -X .hg_archival.txt $(ARCH)