- @rm -rf $(DIR_SRC)/lcr && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_SRC)/lcr && sed -i 's|usr/local/lcr|var/ipfire/lcr|g' Makefile.in
- cd $(DIR_SRC)/lcr && sed -i 's|usr/local/lcr|var/ipfire/lcr|g' Makefile.am
- cd $(DIR_SRC)/lcr && ./configure --prefix=/usr
+ @rm -rf $(DIR_SRC)/lcr && cd $(DIR_SRC) && tar Jxf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_SRC)/lcr && sed -i -e "s|^EXTENSIONdir=.*|EXTENSIONdir=/var/ipfire/lcr/extensions|g" \
+ Makefile.am
+ cd $(DIR_SRC)/lcr && ./autogen.sh
+ cd $(DIR_SRC)/lcr && ./configure --prefix=/usr \
+ --sysconfdir=/var/ipfire \
+ --localstatedir=/var \
+ --datarootdir=/var/ipfire