{"id":1228,"date":"2015-01-10T15:30:16","date_gmt":"2015-01-10T13:30:16","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=1228"},"modified":"2017-10-07T17:27:04","modified_gmt":"2017-10-07T15:27:04","slug":"compiling-serf","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-serf\/","title":{"rendered":"Compiling serf"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\n#necesar lui SVN client\r\nNEW_BUILD_NAME=serf\r\nNEW_BUILD_VER=1.3.6\r\nNEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER\r\nls -l \/tmp\/$NEW_BUILD_NAME-*\r\nls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-*\r\nNEW_BUILD_NR=0\r\ncd ~\/compile\r\nsvn co http:\/\/serf.googlecode.com\/svn\/tags\/1.3.6\/ $NEW_BUILD_NAME_AND_VER\r\ncd $NEW_BUILD_NAME_AND_VER\r\n#~\/x.sh ffpg\r\nfind . -type f \\( -exec sed -i s\/\"\\\/usr\\\/bin\\\/perl\"\/\"\\\/ffp\\\/bin\\\/perl\"\/g {} \\; , -exec sed -i s\/\"\\\/usr\\\/bin\\\/python\"\/\"\\\/ffp\\\/bin\\\/python\"\/g {} \\; , -exec sed -i s\/\"\\\/usr\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , -exec sed -i s\/\"\\\/usr\\\/bin\\\/sh\"\/\"\\\/ffp\\\/bin\\\/sh\"\/g {} \\; , -exec sed -i s\/\"\\\/usr\\\/bin\\\/env\"\/\"\\\/ffp\\\/bin\\\/env\"\/g {} \\; , -exec sed -i s\/\"\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , -exec sed -i s\/\"\\\/bin\\\/sh\"\/\"\\\/ffp\\\/bin\\\/sh\"\/g {} \\; , -exec sed -i s\/\"\\\/bin\\\/env\"\/\"\\\/ffp\\\/bin\\\/env\"\/g {} \\; , -exec sed -i s\/\"\\\/usr\\\/include\"\/\"\\\/ffp\\\/include\"\/g {} \\; , -exec sed -i s\/\"\\\/usr\\\/local\\\/include\"\/\"\\\/ffp\\\/include\"\/g {} \\; , -exec sed -i s\/\"\\\/usr\\\/local\"\/\"\\\/ffp\"\/g {} \\; , -exec sed -i s\/\"\\\/ffp\\\/ffp\\\/\"\/\"\\\/ffp\\\/\"\/g {} \\; \\)\r\ncp -r ..\/$NEW_BUILD_NAME_AND_VER ..\/$NEW_BUILD_NAME_AND_VER-ffpg\r\nmkdir ..\/$NEW_BUILD_NAME_AND_VER-build\r\ncd ..\/$NEW_BUILD_NAME_AND_VER-build\r\n#File serf-1.3.6\/SConstruct:\r\n#    if sys.platform != 'win32':\r\n#      ### gcc only. figure out appropriate test \/ better way to check these\r\n#      ### flags, and check for gcc.\r\n#      env.Append(CFLAGS='-std=c89')\r\n#      env['ENV']['PATH'] = '\/ffp\/bin:\/ffp\/sbin' -> to add\r\nscons APR=\/ffp APU=\/ffp OPENSSL=\/ffp PREFIX=\/ffp -Y \/ffp\/home\/root\/compile\/$NEW_BUILD_NAME_AND_VER\r\nrm -r $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nscons PREFIX=$HOME\/temp\/$NEW_BUILD_NAME_AND_VER\/ffp -Y \/ffp\/home\/root\/compile\/$NEW_BUILD_NAME_AND_VER install\r\ncd $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nmakepkg $NEW_BUILD_NAME $NEW_BUILD_VER $NEW_BUILD_NR\r\ncp -v \/tmp\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz ~\/ffp_0.7_armv5\/packages\/\r\nfunpkg -q $NEW_BUILD_NAME\r\nfunpkg -i ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#necesar lui SVN client NEW_BUILD_NAME=serf NEW_BUILD_VER=1.3.6 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l \/tmp\/$NEW_BUILD_NAME-* ls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~\/compile svn co http:\/\/serf.googlecode.com\/svn\/tags\/1.3.6\/ $NEW_BUILD_NAME_AND_VER cd $NEW_BUILD_NAME_AND_VER #~\/x.sh ffpg find . -type f \\( -exec sed -i s\/&#8221;\\\/usr\\\/bin\\\/perl&#8221;\/&#8221;\\\/ffp\\\/bin\\\/perl&#8221;\/g {} \\; , -exec sed -i s\/&#8221;\\\/usr\\\/bin\\\/python&#8221;\/&#8221;\\\/ffp\\\/bin\\\/python&#8221;\/g [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-serf\/#more-1228\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling serf<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,11,163],"tags":[130],"class_list":["post-1228","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","category-nsa310","tag-serf"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=1228"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1228\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=1228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=1228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}