commit 9b5ce44c211a985ea77b4bb651c6ad48e3a99ef2 parent 7b7ac3fbf28ef895f21d3829c94233f557f50418 Author: Kyle Milz <kyle@getaddrinfo.net> Date: Thu, 12 Mar 2015 23:36:58 -0600 Makefile: install actually does something - knock off .pl extensions from scripts - install things in proper places - generate an /etc/rc.d/ file, set permissions Diffstat:
M | Makefile | | | 13 | ++++++++++--- |
R | gen_index.pl -> gen_index | | | 0 | |
R | gen_svg.pl -> gen_svg | | | 0 | |
A | openbsd_rc.d_pc_fcgi | | | 7 | +++++++ |
R | pricechart_fcgi -> pc_fcgi | | | 0 | |
R | price_scraper.pl -> price_scraper | | | 0 | |
R | product_scraper.pl -> product_scraper | | | 0 |
7 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,4 +1,11 @@ +USR_LOCAL_BIN=/usr/local/bin +LIBDATA=/usr/local/libdata/perl5/site_perl + +DEV_ETC=/home/kyle/src/pricechart +BINS=price_scraper product_scraper gen_index pc_fcgi + install: - cp price_scraper.pl product_scraper.pl ~/bin - cp PriceChart.pm /usr/local/libdata/perl5/site_perl/ - # cp etc/pricechart_search /etc/rc.d/ + cp $(BINS) $(USR_LOCAL_BIN)/ + sed -e "s@$(DEV_ETC)@$(USR_LOCAL_BIN)@" < openbsd_rc.d_pc_fcgi \ + > /etc/rc.d/pc_fcgi + cp PriceChart.pm $(LIBDATA)/ diff --git a/gen_index.pl b/gen_index diff --git a/gen_svg.pl b/gen_svg diff --git a/openbsd_rc.d_pc_fcgi b/openbsd_rc.d_pc_fcgi @@ -0,0 +1,7 @@ +#!/bin/sh + +daemon="/home/kyle/src/pricechart/pc_fcgi" + +. /etc/rc.d/rc.subr + +rc_cmd $1 diff --git a/pricechart_fcgi b/pc_fcgi diff --git a/price_scraper.pl b/price_scraper diff --git a/product_scraper.pl b/product_scraper