<commit_before>

SPK_NAME = tinyproxy
SPK_VERS = 1.8.3
SPK_REV = 1
SPK_ICON = src/tinyproxy.png

DEPENDS = cross/$(SPK_NAME)

MAINTAINER = <EMAIL>
COMMENT    = "Tinyproxy is a light-weight HTTP/HTTPS proxy daemon for POSIX operating systems."
RELOAD_UI = no
DISPLAY_NAME = Tinyproxy

HOMEPAGE   = https://banu.com/tinyproxy/
LICENSE    = GNU GPL 2

INSTALLER_SCRIPT = src/installer.sh
SSS_SCRIPT       = src/start-stop-status
ADDITIONAL_SCRIPTS = 

INSTALL_PREFIX = /usr/local/$(SPK_NAME)
PRE_COPY_TARGET = install-tinyproxy
COPY_TARGET = copy_target_tinyproxy

include ../../mk/spksrc.spk.mk

copy_target_tinyproxy:

.PHONY: install-tinyproxy
install-tinyproxy:
	@$(MSG) "=========== PACKAGING TINYPROXY ===================="
	install -m 755 -d $(STAGING_DIR)/log
	install -m 755 -d $(STAGING_DIR)/bin
	install -m 755 -d $(STAGING_DIR)/share
	install -m 755 src/bin/*.pl $(STAGING_DIR)/bin/
	install -m 755 $(INSTALL_DIR)/usr/local/tinyproxy/sbin/tinyproxy $(STAGING_DIR)/bin/
	install -m 644 src/tinyproxy.conf $(STAGING_DIR)/tinyproxy.conf
	install -m 644 src/tinyproxy.conf.tpl $(STAGING_DIR)/tinyproxy.conf.tpl
	install -m 644 $(INSTALL_DIR)/usr/local/tinyproxy/share/tinyproxy/* $(STAGING_DIR)/share/
	install -m 755 -d $(STAGING_DIR)/www
	install -m 755 src/www/*.cgi $(STAGING_DIR)/www/
	install -m 644 src/www/*.css $(STAGING_DIR)/www/
	install -m 644 src/www/*.html $(STAGING_DIR)/www/
	install -m 644 src/www/*.js $(STAGING_DIR)/www/
	install -m 644 src/www/config $(STAGING_DIR)/www/
	install -m 755 -d $(STAGING_DIR)/www/images
	for size in 16 24 32 48 ; \
	do \
	    convert $(SPK_ICON) -thumbnail $${size}x$${size} -transparent white \
	            $(STAGING_DIR)/www/images/icon$${size}.png ; \
	done	
	chmod 644 $(STAGING_DIR)/www/images/*.png<commit_msg>implement zebulon501 suggestion (COPY_TARGET = nop)<commit_after>

SPK_NAME = tinyproxy
SPK_VERS = 1.8.3
SPK_REV = 1
SPK_ICON = src/tinyproxy.png

DEPENDS = cross/$(SPK_NAME)

MAINTAINER = <EMAIL>
COMMENT    = "Tinyproxy is a light-weight HTTP/HTTPS proxy daemon for POSIX operating systems."
RELOAD_UI = no
DISPLAY_NAME = Tinyproxy

HOMEPAGE   = https://banu.com/tinyproxy/
LICENSE    = GNU GPL 2

INSTALLER_SCRIPT = src/installer.sh
SSS_SCRIPT       = src/start-stop-status
ADDITIONAL_SCRIPTS = 

INSTALL_PREFIX = /usr/local/$(SPK_NAME)
PRE_COPY_TARGET = install-tinyproxy
COPY_TARGET = nop

include ../../mk/spksrc.spk.mk

.PHONY: install-tinyproxy
install-tinyproxy:
	@$(MSG) "=========== PACKAGING TINYPROXY ===================="
	install -m 755 -d $(STAGING_DIR)/log
	install -m 755 -d $(STAGING_DIR)/bin
	install -m 755 -d $(STAGING_DIR)/share
	install -m 755 src/bin/*.pl $(STAGING_DIR)/bin/
	install -m 755 $(INSTALL_DIR)/usr/local/tinyproxy/sbin/tinyproxy $(STAGING_DIR)/bin/
	install -m 644 src/tinyproxy.conf $(STAGING_DIR)/tinyproxy.conf
	install -m 644 src/tinyproxy.conf.tpl $(STAGING_DIR)/tinyproxy.conf.tpl
	install -m 644 $(INSTALL_DIR)/usr/local/tinyproxy/share/tinyproxy/* $(STAGING_DIR)/share/
	install -m 755 -d $(STAGING_DIR)/www
	install -m 755 src/www/*.cgi $(STAGING_DIR)/www/
	install -m 644 src/www/*.css $(STAGING_DIR)/www/
	install -m 644 src/www/*.html $(STAGING_DIR)/www/
	install -m 644 src/www/*.js $(STAGING_DIR)/www/
	install -m 644 src/www/config $(STAGING_DIR)/www/
	install -m 755 -d $(STAGING_DIR)/www/images
	for size in 16 24 32 48 ; \
	do \
	    convert $(SPK_ICON) -thumbnail $${size}x$${size} -transparent white \
	            $(STAGING_DIR)/www/images/icon$${size}.png ; \
	done	
	chmod 644 $(STAGING_DIR)/www/images/*.png
{'fraction_non_alphanumeric': 0.15875706214689267, 'fraction_numerical': 0.03531073446327684, 'mean_word_length': 3.837431693989071, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 26, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '623970', 'n_tokens_mistral': 1525, 'n_tokens_neox': 1407, 'n_words': 300}