Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 119865 | Differences between
and this patch

Collapse All | Expand All

(-)makefile.old (-10 / +11 lines)
Lines 1-13 Link Here
1
all:
1
all:
2
	
2
3
3
4
install:
4
install:
5
	mkdir -p /usr/local/bin
5
	mkdir -p ${D}usr/bin
6
	mkdir -p /usr/share/porn-get
6
	mkdir -p ${D}usr/share/porn-get
7
	mkdir -p /usr/share/doc/porn-get
7
	mkdir -p ${D}usr/share/doc/porn-get
8
	# ?? chmod 777 /usr/share/porn-get
8
	mkdir -p ${D}etc/porn-get/
9
	cp porn-get porn-cache /usr/local/bin
9
	mkdir -p ${D}usr/share/man/man1
10
	cp porn.conf /usr/share/porn-get
10
	chmod 777 ${D}usr/share/porn-get
11
	cp changelog readme /usr/share/doc/porn-get
11
	cp porn-get porn-cache ${D}usr/bin
12
	cp porn.1* porn-get.1* porn-cache.1* /usr/share/man/man1
12
	cp porn.conf ${D}etc/porn-get/porn.conf
13
	cp porn.conf.5* /usr/share/man/man5
13
	cp changelog readme ${D}usr/share/doc/porn-get
14
	cp porn.1* ${D}usr/share/man/man1
(-)porn-cache.old (-6 / +6 lines)
Lines 5-16 Link Here
5
5
6
version="0.4.0"
6
version="0.4.0"
7
what=`basename $0 |sed s/-.*//`
7
what=`basename $0 |sed s/-.*//`
8
conf="${what}.conf"
8
conf="/etc/porn-get/porn.conf"
9
dir="./"
9
dir="./"
10
#dir="/usr/share/${what}-get/"
10
#dir="/usr/share/${what}-get/"
11
11
12
if [ ! -f ${dir}${conf} ]; then
12
if [ ! -f ${conf} ]; then
13
    echo "E: Opening ${dir}${conf} - ifstream::ifstream (2 No such file or directory)"
13
    echo "E: Opening {conf} - ifstream::ifstream (2 No such file or directory)"
14
    echo
14
    echo
15
    exit 1
15
    exit 1
16
fi
16
fi
Lines 22-37 Link Here
22
	    echo
22
	    echo
23
	    exit 1
23
	    exit 1
24
	fi
24
	fi
25
	cat ${dir}${conf} |grep -v "^#" |grep -i ".*$2.*" |while read pkg url fileext; do echo $pkg $fileext; done
25
	cat ${conf} |grep -v "^#" |grep -i ".*$2.*" |while read pkg url fileext; do echo $pkg $fileext; done
26
    ;;
26
    ;;
27
    
27
    
28
    stats)
28
    stats)
29
	num=`cat ${dir}${conf} |grep -v "^#" |wc |awk '{ print $1 }'`
29
	num=`cat ${conf} |grep -v "^#" |wc |awk '{ print $1 }'`
30
	echo "Total Packages in $conf: "$num
30
	echo "Total Packages in $conf: "$num
31
    ;;
31
    ;;
32
    
32
    
33
    pkgnames)
33
    pkgnames)
34
	cat ${dir}${conf} |grep -v "^#" |while read pkg url fileext; do echo $pkg $fileext; done
34
	cat ${conf} |grep -v "^#" |while read pkg url fileext; do echo $pkg $fileext; done
35
    ;;
35
    ;;
36
36
37
    *)
37
    *)
(-)porn-get.old (-2 / +3 lines)
Lines 11-17 Link Here
11
11
12
version="0.5.1"
12
version="0.5.1"
13
client=www.linuks.mine.nu/porn-get-$version
13
client=www.linuks.mine.nu/porn-get-$version
14
conf=porn.conf
14
conf=/etc/porn-get/porn.conf
15
RCFILE=porn-getrc
15
RCFILE=porn-getrc
16
DEBUG=${DEBUG:=0}
16
DEBUG=${DEBUG:=0}
17
17
Lines 20-26 Link Here
20
else
20
else
21
	dir=$(pwd)/
21
	dir=$(pwd)/
22
fi
22
fi
23
gpkglist=${dir}${conf}
23
gpkglist=${conf}
24
24
25
# 
25
# 
26
# Load main config file
26
# Load main config file
Lines 199-204 Link Here
199
199
200
case "$1" in
200
case "$1" in
201
    install)
201
    install)
202
  echo "${gpkglist}"
202
  if [ ! -f ${gpkglist} ]; then
203
  if [ ! -f ${gpkglist} ]; then
203
      echo "E: Opening ${gpkglist} - ifstream::ifstream (2 No such file or directory)"
204
      echo "E: Opening ${gpkglist} - ifstream::ifstream (2 No such file or directory)"
204
      echo
205
      echo

Return to bug 119865