Skip to content

{ Tag Archives } freebsd

postfix + courier-imap + sasl2備忘

因為某喵龜毛,把喵主機上的postfix1搞爛了;因為某喵龜毛,乾脆整個移到 jail2 中,再重新安裝一次。某喵在寫紀錄時倒是不龜毛,這個紀錄註定了漏東漏西…. 所以是自爽用 postfix, http://www.postfix.org [↩]Jail, http://en.wikipedia.org/wiki/FreeBSD_jail [↩]

Also tagged , , , , ,

libevent備忘

方便的東西效率應該比select好…. void aaa(int fd, short event, void *arg){ } void bbb(int fd, short event, void *arg){ } void ccc(int fd, short event, void *arg){ struct timeval tv; timerclear(&tv); tv.tv_sec=1; event_add(&ev3, &tv); } void main (int argc, char * argv[]) { struct event ev1,ev2,ev3; struct timeval tv; int fd=XXXXX event_init(); event_set(&ev1, fd, EV_READ|EV_PERSIST, aaa, &ev1); event_add(&ev1, [...]

Also tagged , ,

Apache::Gallery + mod_perl 2 hack (更新)

Apache::Gallery是一個網頁相簿的軟體,只要用FTP上傳圖片,他就自動處理縮圖及分頁,我很喜歡這樣的簡潔。不過,作者似乎很久沒有更新了,Apache::Gallery需要做一些修改才能跟目前的mod_perl 2搭配。 留個紀錄,省下以後更改的時間。 使用patch-mp2-api後,在我的系統(FreeBSD)上,還需要一點點加工….. @@a – require Apache2::mod_perl;+ require mod_perl2; mm… 下面是之前的修改,新版(0.9.1)加上patch-mp2-api就不需要了。 要改的地方只有一個…(mm…應該吧) /usr/local/lib/perl5/site_perl/5.8.6/Apache/Gallery.pm Ln:23 – require Apache::Server;+ require Apache::ServerRec; 目前這樣就會動了,只是不曉得有沒有異常。還在觀察中。

Also tagged , ,