File yaps-0.96.diff of Package capi4yaps
Index: Config =================================================================== --- Config.orig +++ Config @@ -24,9 +24,9 @@ YAPS_CFGFILE = /etc/yaps.rc # Name of local configuration file (location is $HOME.) YAPS_LCFGFILE = .yapsrc # Directory for installing the binary -YAPS_BINDIR = /usr/local/bin +YAPS_BINDIR = /usr/bin # Directory for optional support files -YAPS_LIBDIR = /usr/local/lib/yaps +YAPS_LIBDIR = /usr/lib/yaps # User/Group/Mode for yaps YAPS_USER = bin YAPS_GROUP = uucp Index: Makefile =================================================================== --- Makefile.orig +++ Makefile @@ -33,19 +33,19 @@ yaps.doc: yaps.html lynx -cfg=/dev/null -nolist -dump $< > $@ install: $(DSTFLE) $(CFGFILE) - if [ ! -d $(YAPS_LIBDIR) ]; then \ - install -d -m 755 -o $(YAPS_USER) -g $(YAPS_GROUP) $(YAPS_LIBDIR) ; \ + if [ ! -d $(DESTDIR)$(YAPS_LIBDIR) ]; then \ + install -d -m 755 $(DESTDIR)$(YAPS_LIBDIR) ; \ fi @if [ -f contrib/Makefile ]; then \ $(MAKE) -C contrib install ; \ fi $(DSTFLE): yaps - install -o $(YAPS_USER) -g $(YAPS_GROUP) -m $(YAPS_MODE) -s yaps $@ + install -m $(YAPS_MODE) yaps $(DESTDIR)$@ $(CFGFILE): yaps.rc @if [ ! -f $@ ]; then \ - install -o $(YAPS_RCUSER) -g $(YAPS_RCGROUP) -m $(YAPS_RCMODE) -s yaps.rc $@ ; \ + install -m $(YAPS_RCMODE) -s yaps.rc $(DESTDIR)$@ ; \ fi clean: