wok rev 336

Openvpn: add directories
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 05 09:05:47 2008 +0000 (2008-03-05)
parents 21a9cf62405e
children 60102f5f62dd
files openvpn/receipt
line diff
     1.1 --- a/openvpn/receipt	Tue Mar 04 22:56:12 2008 +0100
     1.2 +++ b/openvpn/receipt	Wed Mar 05 09:05:47 2008 +0000
     1.3 @@ -26,6 +26,17 @@
     1.4  {
     1.5  	mkdir -p $fs/usr/sbin
     1.6  	cp -a $_pkg/usr/sbin/openvpn $fs/usr/sbin
     1.7 -	mkdir $fs/etc/openvpn
     1.8  }
     1.9  
    1.10 +# Post install/remove commands for Tazpkg.
    1.11 +post_install()
    1.12 +{
    1.13 +	mkdir -p /etc/openvpn /var/run/openvpn
    1.14 +}
    1.15 +
    1.16 +post_remove()
    1.17 +{
    1.18 +	# remove config and pids
    1.19 +	rm -rf /etc/openvpn /var/run/openvpn
    1.20 +}
    1.21 +