Commit 968250f6 authored by Ricardo Tavares de Oliveira's avatar Ricardo Tavares de Oliveira Committed by Vinicius Ruoso

integrity/Makefile: Deleted actions related to the generation of packs base

By now, the generation of the packs base will be done by an external
schema, since we were having some updating problems with the old way.
The schema used needs only to put two files (packs_base_{normal,testing})
contain the packs base for both kind of schools. The generation of the
md5 base will be done with those files.
Signed-off-by: default avatarRicardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
parent d219bfcd
......@@ -27,29 +27,22 @@ checkprddir:
prd_packs: checkprefix checkprddir
@cp prd_packs prd_packs.po $(PREFIX)/commands-available
@sed -i "s#MAINBASEFILE#$(PRDDIR)/packs/packs_base#g" \
@sed -i "s#MAINBASEFILEN#$(PRDDIR)/packs/packs_base_normal#g" \
$(PREFIX)/commands-available/prd_packs.po
@sed -i "s#MAINBASEFILET#$(PRDDIR)/packs/packs_base_testing#g" \
$(PREFIX)/commands-available/prd_packs.po
@cp prd_packs*.st $(PREFIX)/states-available
@mkdir -p $(PRDDIR)/packs
@cp generate_pack_base.sh $(PRDDIR)/packs
@sed -i "s#MAINBASEFILE#$(PRDDIR)/packs/packs_base#g" \
$(PRDDIR)/packs/generate_pack_base.sh
@cp packs_base $(PRDDIR)/packs
prd_packs-install: checkprefix-install prd_packs
@ln -fs $(PREFIX)/commands-available/prd_packs \
$(PREFIX)/commands-enabled/onconnect.d/090-prd_packs
@ln -fs $(PREFIX)/states-available/prd_packs* \
$(PREFIX)/states-enabled/
@echo -ne "$$(crontab -l)\n0 23 * * * \
$(PRDDIR)/packs/generate_pack_base.sh &>/dev/null\n\n" |\
crontab -
prd_packs-uninstall: checkprefix-install
@rm -f $(PREFIX)/commands-enabled/*/090-prd_packs
@rm -f $(PREFIX)/states-enabled/prd_packs*
@crontab -l | grep -v "$(PRDDIR)/packs/generate_pack_base.sh" |\
crontab -
prd_packs-purge: checkprefix prd_packs-uninstall
@rm -f $(PREFIX)/commands-available/prd_packs*
......@@ -89,7 +82,9 @@ prd_md5: checkprefix checkprddir prd_packs prd_export prd_integrity
@cp prd_md5*.st $(PREFIX)/states-available
@mkdir -p $(PRDDIR)/mdsum
@cp generate_mdsum_base.sh $(PRDDIR)/mdsum
@sed -i "s#MAINVBASE#$(PRDDIR)/packs/packs_base#g" \
@sed -i "s#MAINVBASEN#$(PRDDIR)/packs/packs_base_normal#g" \
$(PRDDIR)/mdsum/generate_mdsum_base.sh
@sed -i "s#MAINVBASET#$(PRDDIR)/packs/packs_base_testing#g" \
$(PRDDIR)/mdsum/generate_mdsum_base.sh
@sed -i "s#MAINMD5DIR#$(PRDDIR)/mdsum#g" \
$(PRDDIR)/mdsum/generate_mdsum_base.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment