{"id":116,"date":"2007-05-13T21:58:08","date_gmt":"2007-05-13T09:58:08","guid":{"rendered":"http:\/\/craig.dubculture.co.nz\/blog\/2007\/05\/13\/building-nm-pptp-from-source\/"},"modified":"2010-08-28T17:33:36","modified_gmt":"2010-08-28T16:33:36","slug":"building-nm-pptp-from-source","status":"publish","type":"post","link":"http:\/\/craig.dubculture.co.nz\/blog\/2007\/05\/13\/building-nm-pptp-from-source\/","title":{"rendered":"Building NM-PPTP from source"},"content":{"rendered":"<p>I had to spend a lot of time today re-remembering how to take a CVS\/SVN tree and make a distributable package of it.  Here are my notes, for me next time, and for anyone interested, now.<\/p>\n<pre>sed -i -e \"s\/AC_INIT(NetworkManager-ppp_vpn, 0.7.0-beta, eemynotna@gmail.com, NetworkManager-ppp_vpn)\/AC_INIT(NetworkManager-pptp, 0.6.5, eemynotna@gmail.com, NetworkManager-pptp)\/\" configure.in\r\nsed -i -e \"s\/SUBDIRS = src auth-dialog auth-dialog-general properties po\/SUBDIRS = src auth-dialog properties po\/\" Makefile.am\r\nsed -i -e \"s_auth-dialog-general\/Makefile__\" configure.in\r\nln -s \/usr\/include\/pppd src\/pppd\r\n.\/autogen.sh --prefix=\/usr --sysconfdir=\/etc --localstatedir=\/var\r\nmake dist\r\n\r\n<\/pre>\n<p>What's all that do, then?<\/p>\n<ol>\n<li>Downgrade the version number<\/li>\n<li>Remove the new auth-dialog-general, which isn't ready for primetime yet, from the Makefile<\/li>\n<li>(as above, but for the configure script)<\/li>\n<li>Link the system pppd dir - not actually packaged, but &lt;tt&gt;make dist&lt;\/tt&gt; fails if the PPP headers are missing<\/li>\n<li>Run the GNOME autogen script, which runs the <a href=\"http:\/\/www.wlug.org.nz\/AutoTools\">autotools<\/a><\/li>\n<li>Builds a NetworkManager-pptp-0.6.5.tar.gz, with a configure script, ready for packaging.<\/li>\n<\/ol>\n<p>It helps to remember things.  Before <a href=\"http:\/\/www.gnome.org\/projects\/NetworkManager\/developers\/\">re-reading the docs<\/a>, and realising there was an autogen script, I was running all these commands (which of course required Perry to figure out, as I hate the autotools)<\/p>\n<pre>aclocal\r\nautoheader\r\nintltoolize --copy --force --automake\r\nlibtoolize --force\r\nautomake --copy --add-missing\r\nautoconf\r\n.\/configure --with-pppd=\/usr\/include\/pppd\r\nln -s \/usr\/include\/pppd src\/pppd\r\nmake dist<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I had to spend a lot of time today re-remembering how to take a CVS\/SVN tree and make a distributable package of it. Here are my notes, for me next time, and for anyone interested, now. sed -i -e \"s\/AC_INIT(NetworkManager-ppp_vpn, 0.7.0-beta, eemynotna@gmail.com, NetworkManager-ppp_vpn)\/AC_INIT(NetworkManager-pptp, 0.6.5, eemynotna@gmail.com, NetworkManager-pptp)\/\" configure.in sed -i -e \"s\/SUBDIRS = src auth-dialog auth-dialog-general [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[66],"tags":[8,32,33,19],"_links":{"self":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/116"}],"collection":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":1,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":390,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions\/390"}],"wp:attachment":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}