{"id":47,"date":"2008-03-14T19:23:05","date_gmt":"2008-03-14T10:23:05","guid":{"rendered":"http:\/\/www.kaz.bz\/wp\/2008-03-14_201\/"},"modified":"2008-03-14T19:23:05","modified_gmt":"2008-03-14T10:23:05","slug":"daemontoolsucspi-tcp-with-netqmail-%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%80%82","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2008\/03\/14\/47.html","title":{"rendered":"daemontools+ucspi-tcp with netqmail \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3002"},"content":{"rendered":"<p>daemontools\u3068ucspi-tcp\u3092\u3001netqmail\u306e\u30d1\u30c3\u30c1\u3092\u5229\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<br \/>\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304b\u3089\u5b9f\u65bd\u3002<br \/>\ntar.gz\u30d5\u30a1\u30a4\u30eb\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30d1\u30b9\u306b\u3042\u308barchives\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3002<\/p>\n<p>\u305d\u306e\u3046\u3061netqmail\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u30bb\u30c3\u30c8\u306b\u3059\u308b\u4e88\u5b9a\u3002<\/p>\n<p>#! \/bin\/sh<\/p>\n<p>ARCHDIR=archives<br \/>\nLOG=install.log<br \/>\nDAEMONTOOLS=daemontools-0.76<br \/>\nNETQMAIL=netqmail-1.06<br \/>\nUCSPITCP=ucspi-tcp-0.88<\/p>\n<p>create_archive_dir(){<br \/>\nif [ -e $ARCHDIR ]<br \/>\nthen<br \/>\necho \"`pwd`\/$ARCHDIR is already exist.\"<br \/>\nelse<br \/>\nmkdir -p `pwd`\/$ARCHDIR<br \/>\nfi<br \/>\n}<\/p>\n<p>create_package_dir(){<br \/>\nif [ -e \/package ]<br \/>\nthen<br \/>\necho \"\/package is already exist.\"<br \/>\nelse<br \/>\nln -s `pwd` \/package<br \/>\nfi<br \/>\n}<\/p>\n<p>untar_arch(){<br \/>\nif [ -e $1 ]<br \/>\nthen<br \/>\ntar zxvpf $1<br \/>\nmv $1 $ARCHDIR<br \/>\nfi<br \/>\n}<\/p>\n<p>dl(){<br \/>\nif [ -e $1 ]<br \/>\nthen<br \/>\necho \"$1 is already exist.\"<br \/>\nelse<br \/>\nwget $2<br \/>\nuntar_arch $1<br \/>\nfi<br \/>\n}<\/p>\n<p>dl_package(){<br \/>\n#dl $DAEMONTOOLS.tar.gz \"http:\/\/tools.qmail.jp\/daemontools\/$DAEMONTOOLS.tar.gz\"<br \/>\ndl $NETQMAIL.tar.gz \"http:\/\/qmail.org\/$NETQMAIL.tar.gz\"<br \/>\ndl $UCSPITCP.tar.gz \"http:\/\/cr.yp.to\/ucspi-tcp\/$UCSPITCP.tar.gz\"<br \/>\n}<\/p>\n<p>run_patch(){<br \/>\nif [ -e $1 ]<br \/>\nthen<br \/>\n#patch -s -p1 < $1\npatch -p1 < $1\nfi\n}\n\ndaemontools_install(){\npushd admin\/$DAEMONTOOLS\nrun_patch ..\/..\/$NETQMAIL\/other-patches\/$DAEMONTOOLS.errno.patch\npackage\/install\npopd\n}\n\nucspitcp_install(){\npushd $UCSPITCP\nrun_patch ..\/$NETQMAIL\/other-patches\/$UCSPITCP.errno.patch\nrun_patch ..\/$NETQMAIL\/other-patches\/$UCSPITCP.a_record.patch\nmake\nmake setup check\npopd\n}\n\nmain_script(){\ncreate_archive_dir\ncreate_package_dir\ndl_package\n\npushd $ARCHDIR\n#if [ -e $DAEMONTOOLS.tar.gz ] && [ -e $NETQMAIL.tar.gz ] && [ -e $UCSPITCP.tar.gz ]\nif [ -e $NETQMAIL.tar.gz ] && [ -e $UCSPITCP.tar.gz ]\nthen\npopd\ndaemontools_install\nucspitcp_install\nelse\necho \"Install Failed.\"\nfi\n}\n\nmain_script &#124; tee $LOG\n\n\uff082008.03.21.\u8ffd\u8a18 \uff09\n\u66f4\u65b0\u7248\u3092\u30d5\u30a1\u30a4\u30eb\u3067\u30a2\u30c3\u30d7\n\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u30bb\u30c3\u30c8 [1]\n\n[1] http:\/\/www.kaz.bz\/wp\/wp-content\/uploads\/2008\/03\/install_scripts.zip\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>daemontools\u3068ucspi-tcp\u3092\u3001netqmail\u306e\u30d1\u30c3\u30c1\u3092\u5229\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8 \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304b\u3089\u5b9f\u65bd\u3002 tar.gz\u30d5\u30a1\u30a4\u30eb\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30d1\u30b9\u306b\u3042\u308barchives\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3002 \u305d\u306e\u3046 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[28],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-djb"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":48,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/03\/14\/48.html","url_meta":{"origin":47,"position":0},"title":"daemontools\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8","author":"kaz. Suenaga","date":"2008\/03\/14","format":false,"excerpt":"#! \/bin\/sh PACK=daemontools-0.76 create_package_di\u2026","rel":"","context":"DJB","block_context":{"text":"DJB","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":634,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/02\/03\/634.html","url_meta":{"origin":47,"position":1},"title":"daemontools + ucspi-tcp + djbdns(dnscache) + netqmail =","author":"kaz. Suenaga","date":"2011\/02\/03","format":false,"excerpt":"\u4e00\u6c17\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6c7a\u3081\u3046\u3061\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 \/usr\/local\/src\/djb \u3068\u304b\u306b ins\u2026","rel":"","context":"DJB","block_context":{"text":"DJB","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1380,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/10\/03\/1380.html","url_meta":{"origin":47,"position":2},"title":"ucspi-tcp \u306eSSL\u5bfe\u5fdc\uff08\u3064\u3044\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\uff09\u3002","author":"kaz. Suenaga","date":"2012\/10\/03","format":false,"excerpt":"\u65b9\u91dd http:\/\/www.nrg4u.com\/ \u306b\u3042\u308b\u300ctcpserver SSL\/TLS pat\u2026","rel":"","context":"ucspi-tcp","block_context":{"text":"ucspi-tcp","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb\/ucspi-tcp"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":93,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/06\/12\/93.html","url_meta":{"origin":47,"position":3},"title":"OpenSSL \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8","author":"kaz. Suenaga","date":"2006\/06\/12","format":false,"excerpt":"[code lang=text] #! \/bin\/sh # Config PACK=openssl-\u2026","rel":"","context":"OpenSSL","block_context":{"text":"OpenSSL","link":"https:\/\/wp.kaz.bz\/tech\/category\/web\/openssl"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1351,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/08\/17\/1351.html","url_meta":{"origin":47,"position":4},"title":"httpd-2.4\u7cfb\u306e\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3002","author":"kaz. Suenaga","date":"2012\/08\/17","format":false,"excerpt":"CentOS 6\u7cfb\u306e\u74b0\u5883\u306bhttpd-2.4\u7cfb\u3092\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306b\u4f7f\u3048\u308b\u6c7a\u3081\u6253\u3061\u30a4\u30f3\u30b9\u30c8\u30fc\u2026","rel":"","context":"Apache 2.4","block_context":{"text":"Apache 2.4","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache\/httpd-2-4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":94,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/06\/12\/94.html","url_meta":{"origin":47,"position":5},"title":"PostgreSQL \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8","author":"kaz. Suenaga","date":"2006\/06\/12","format":false,"excerpt":"#! \/bin\/sh PGSQL_VER=postgresql-7.4.6 PGSQL_DIR=\/u\u2026","rel":"","context":"PostgreSQL","block_context":{"text":"PostgreSQL","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/db\/postgresql"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":0,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}