sun's longitude:177 41 16 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
 
   
FreeBSD
FreeBSD study ....
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
39 번 글: [lighttpd-wdb] make port and packaging
글쓴이: 산이 [홈페이지] 글쓴날: 2005년 12월 05일 10:52:34 월(오전) 조회: 3655
-- make `lighttpd-wdb' packaging
-- san2@2005.02.23

1. cp -pR lighttpd lighttpd-NEW

2. cp -pR lighttpd lighttpd-wdb-NEW

3. edit `Makefile' file
   diff -Nur lighttpd-OLD/Makefile lighttpd-NEW/Makefile
   diff -Nur lighttpd-OLD/Makefile lighttpd-wdb-OLD/Makefile
   edit lighttpd-wdb-NEW/Makefile

-- Makefile --------------------------------------------

// add two line
PKGNAMESUFFIX=  -wdb
PORTREVISION=   p1

// disabled
#USE_RC_SUBR=   lighttpd.sh

// add above on MAN1=
## add san2@2004.11.04
WRAPPER_FILE=	${PREFIX}/sbin/lighttpd_wrapper
STARTUP_FILE=	${PREFIX}/etc/rc.d/lighttpd.sh-dist
CONF_FILE=	${PREFIX}/etc/lighttpd.conf.sample
CONFLICTS=	lighttpd-1.*

// OPTIONS all disabled
#OPTIONS= ....
...

// force disabled ipv6
#.if defined(WITH_IPV6)
CONFIGURE_ARGS+=        --disable-ipv6
#.endif

// replace post-install
post-install:
	@${INSTALL} -d -m 755 -o root -g wheel /home/httpd/127.0.0.1
	@${INSTALL} -d -m 755 -o nobody -g wheel /home/httpd/logs
	@${INSTALL_SCRIPT} ${FILESDIR}/lighttpd_wrapper ${WRAPPER_FILE}
	@${INSTALL_SCRIPT} ${FILESDIR}/lighttpd.sh-dist ${STARTUP_FILE}
	@${INSTALL_DATA} ${FILESDIR}/lighttpd.conf.sample ${CONF_FILE}
	@${CHMOD} 755 ${WRAPPER_FILE} ${STARTUP_FILE}
.if !exists(${PREFIX}/etc/lighttpd.conf)
	@${INSTALL_DATA} ${FILESDIR}/lighttpd.conf.sample ${PREFIX}/etc/lighttpd.conf
.endif
	@${LIBTOOL} --finish ${PREFIX}/lib
--------------------------------------------------------


4. edit `pkg-plist' file
   diff -Nur lighttpd-OLD/pkg-plist lighttpd-NEW/pkg-plist
   diff -Nur lighttpd-OLD/pkg-plist lighttpd-wdb-OLD/pkg-plist
   edit lighttpd-wdb-NEW/pkg-plist

5. copy lighttpd.conf.sample, lighttpd.sh.tmpl, lighttpd_wrapper
   from lighttpd-wdb-OLD/files/lighttpd*
   to lighttpd-wdb-NEW/files/
   delete files/lighttpd.sh.tmpl if exists
   delete files/lighttpd.sh.in if exists

6. Ver 1.3.14-
   make `patch-src::buffer.c' patch file for `+' bug
   make patch
   cp src/buffer.c src/buffer.c.orig
   edit buffer.c
   make patch file :
   diff -Nur src/buffer.c.orig src/buffer.c.orig
   > lighttpd-wdb-NEW/file/patch-src::buffer.c

7. patch `Directory Listing' human scale
   src/response.c

8. etc edit
   lighttpd.conf.sample ...

9. make packaging
   make package

10. test

 
이전글 : [rc.conf.local]
다음글 : Gentoo / FreeBSD  
 from 222.106.218.166
JS(Redhands)Board 0.4 +@

|글쓰기| |답장쓰기| |수정| |삭제|
|이전글| |다음글| |목록보기|
인쇄용 

apache lighttpd linuxchannel.net 
Copyright (c) 1997-2017, linuxchannel.net

Page loading: 0.01(server) + (network) + (browser) seconds