fix for #16, install man page into fhs compliant place

--HG--
extra : convert_revision : svn%3Aeebe1cee-a9af-4fe4-bd26-ad572b19c5ab/trunk%4088
This commit is contained in:
mathias.gumz 2009-02-25 05:56:58 +00:00
parent 73882e869e
commit d25cf2384d
2 changed files with 27 additions and 21 deletions

View file

@ -1,5 +1,9 @@
Version 1.0 Version 1.0
---------------------------------------------------------------------- ----------------------------------------------------------------------
2009-02-25:
* fix for #16, install man page into fhs compliant place
(thanx ibtaylor)
2009-02-24: 2009-02-24:
* fix for #17, setting PAM_TTY helps root * fix for #17, setting PAM_TTY helps root

View file

@ -23,35 +23,37 @@ install : alock docs
else else
install : alock install : alock
endif endif
mkdir -p $(DESTDIR)$(prefix)/bin/ install -d \
cp -fv src/alock $(DESTDIR)$(prefix)/bin/alock $(DESTDIR)$(prefix)/bin \
chmod 755 $(DESTDIR)$(prefix)/bin/alock $(DESTDIR)$(prefix)/share/alock/xcursors \
@if [ -f alock.1 ]; then \ $(DESTDIR)$(prefix)/share/alock/bitmaps
mkdir -p $(DESTDIR)$(prefix)/man/man1/ ;\ install -m755 \
cp -fv alock.1 $(DESTDIR)$(prefix)/man/man1/alock.1 ;\ src/alock \
chmod 444 $(DESTDIR)$(prefix)/man/man1/alock.1 ;\ $(DESTDIR)$(prefix)/bin/alock
if [ -f alock.1 ]; then \
install -d \
$(DESTDIR)$(prefix)/share/man/man1 ; \
install -m444 \
alock.1 \
$(DESTDIR)$(prefix)/share/man/man1/alock.1 ; \
else \ else \
echo ",-----------------------------------------------------------," ;\ echo ",-----------------------------------------------------------,"; \
echo "| not installing the documentation because it was not built |" ;\ echo "| not installing the documentation because it was not built |"; \
echo "| install 'asciidoc' and run './configure && make' again |" ; \ echo "| install 'asciidoc' and run './configure && make' again |"; \
echo "\`-----------------------------------------------------------'" ;\ echo "\`-----------------------------------------------------------'"; \
fi fi
mkdir -p $(DESTDIR)$(prefix)/share/alock/xcursors install -m444 \
cp -fv contrib/xcursor-alock contrib/xcursor-gentoo \ contrib/xcursor-alock contrib/xcursor-gentoo \
contrib/xcursor-fluxbox contrib/xcursor-pekwm \ contrib/xcursor-fluxbox contrib/xcursor-pekwm \
$(DESTDIR)$(prefix)/share/alock/xcursors/ $(DESTDIR)$(prefix)/share/alock/xcursors/
mkdir -p $(DESTDIR)$(prefix)/share/alock/bitmaps install -m444 \
cp -fv bitmaps/alock.xbm bitmaps/alock_mask.xbm \ bitmaps/alock.xbm bitmaps/alock_mask.xbm \
bitmaps/mini.xbm bitmaps/mini_mask.xbm \ bitmaps/mini.xbm bitmaps/mini_mask.xbm \
bitmaps/xtr.xbm bitmaps/xtr_mask.xbm \ bitmaps/xtr.xbm bitmaps/xtr_mask.xbm \
$(DESTDIR)$(prefix)/share/alock/bitmaps/ $(DESTDIR)$(prefix)/share/alock/bitmaps/
chmod 444 $(DESTDIR)$(prefix)/share/alock/xcursors/* install -m444 \
chmod 444 $(DESTDIR)$(prefix)/share/alock/bitmaps/* README.txt LICENSE.txt CHANGELOG.txt \
cp -fv README.txt LICENSE.txt CHANGELOG.txt \
$(DESTDIR)$(prefix)/share/alock/ $(DESTDIR)$(prefix)/share/alock/
chmod 444 $(DESTDIR)$(prefix)/share/alock/README.txt
chmod 444 $(DESTDIR)$(prefix)/share/alock/LICENSE.txt
chmod 444 $(DESTDIR)$(prefix)/share/alock/CHANGELOG.txt
@if `./src/alock -auth list | grep passwd > /dev/null`; then \ @if `./src/alock -auth list | grep passwd > /dev/null`; then \
echo ",-------------------------------------------------,"; \ echo ",-------------------------------------------------,"; \
echo "| it seems that you have compiled 'alock' with |"; \ echo "| it seems that you have compiled 'alock' with |"; \