|
Line 7
Link Here
|
| 7 |
MY_P="${P/-/_}" |
|
|
|
Line 10
Link Here
|
| 10 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.c" |
9 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
| 11 |
-- |
|
|
|
Lines 21-25
Link Here
|
| 21 |
src_unpack() { |
20 |
# shttpd now supports this: |
| 22 |
mkdir ${S} |
21 |
# -DWITH_PUT_AND_DELETE Support for PUT and DELETE methods |
| 23 |
cp ${DISTDIR}/${MY_P}.c ${S} |
22 |
# -DNO_AUTH Disable authorization support |
| 24 |
} |
23 |
# -DNO_CGI Disable CGI support |
| 25 |
|
24 |
# -DIO_MAX=16384 Maximum HTTP request size (default is 32K) |
| 26 |
-- |
25 |
# |
|
|
26 |
# i think CGI is interesting (CGI use flag?) |
|
Line 31
Link Here
|
| 31 |
opts="-DWITH_SSL ${MY_P}.c -o ${PN} -lcrypto -lssl" |
32 |
opts="-DCONFIG=\"/etc/shttpd/shttpd.conf\" \ |
| 32 |
-- |
33 |
-DWITH_SSL ${PN}.c -o ${PN} -lcrypto -lssl" |
|
Line 33
Link Here
|
| 33 |
opts="${MY_P}.c -o ${PN}" |
35 |
opts="-DCONFIG=\"/etc/shttpd/shttpd.conf\" \ |
| 34 |
-- |
36 |
${PN}.c -o ${PN}" |
|
Line 48
Link Here
|
|
|
51 |
doman ${PN}.1 || die |
| 52 |
|
| 53 |
insinto /etc/shttpd |
| 54 |
doins ${FILESDIR}/${PN}.conf || die |
| 55 |
doins ${PN}.pem || die |
|
Line 55
Link Here
|
| 55 |
einfo "Please read http://shttpd.sourceforge.net/ for more info!" |
63 |
einfo "Do not forget to edit the config file /etc/shttpd/shttpd.conf." |
| 56 |
-- |
|
|