- @rm -rf $(DIR_APP) && cd $(DIR_SRC) && cp -fRv src/pakfire $(DIR_APP)
- cd $(DIR_APP) && mv -vf pakfire.conf /etc
- cd $(DIR_APP) && chown root.root $(DIR_APP) -R && chmod 755 pakfire lib/*
- # cd $(DIR_APP) && find $(DIR_APP) -name .svn -exec rm -rf {} \;
- @$(POSTBUILD)
\ No newline at end of file
+ -mkdir -p /opt/pakfire/{db/{meta,lists,rootfiles,installed,core},etc,lib,tmp} \
+ /var/log/pakfire /var/cache/pakfire
+ cp -fRv $(DIR_SRC)/src/pakfire/* $(DIR_APP)
+ sed -e "s/@VERSION@/$(PAKFIRE_VERSION)/g" \
+ < $(DIR_APP)/pakfire.conf \
+ > $(DIR_APP)/etc/pakfire.conf
+ chown root.root $(DIR_APP) -R
+ chmod 755 $(DIR_APP)/pakfire
+ touch /var/log/pakfire.log
+ chown root.nobody /var/log/pakfire.log
+ chmod 664 /var/log/pakfire.log
+ ln -sf ../../var/log/pakfire /opt/pakfire/logs
+ ln -sf ../../var/cache/pakfire /opt/pakfire/cache
+ @$(POSTBUILD)