Changeset 83211
- Timestamp:
- 08/28/11 08:50:57 (4 years ago)
- Location:
- users/raimue/ports/sysutils/synergy
- Files:
-
- 2 added
- 2 edited
-
Portfile (modified) (1 diff)
-
files/patch-CArchFileUnix.cpp.diff (modified) (1 diff)
-
files/patch-bug57-keypress.diff (added)
-
files/patch-bug57-modifiers.diff (added)
Legend:
- Unmodified
- Added
- Removed
-
users/raimue/ports/sysutils/synergy/Portfile
r71611 r83211 2 2 3 3 PortSystem 1.0 4 PortGroup cmake 1.0 4 5 5 name synergy 6 set sf_proj synergy2 7 version 1.3.1 8 categories sysutils 9 platforms darwin 10 maintainers gmail.com:ascarter 11 description a client/server for sharing a single mouse and keyboard 12 long_description Synergy lets you easily share a single mouse and keyboard \ 13 between multiple computers with different operating systems \ 14 without special hardware. It is intended for users with \ 15 multiple computers on their desk since each system uses its \ 16 own display. 6 name synergy 7 version 1.3.7 8 categories sysutils 9 platforms darwin 10 maintainers raimue 11 description A client/server for sharing a single mouse and keyboard 12 long_description \ 13 Synergy lets you easily share a single mouse and keyboard \ 14 between multiple computers with different operating systems \ 15 without special hardware. It is intended for users with \ 16 multiple computers on their desk since each system uses its \ 17 own display. 18 homepage http://synergy-foss.org 19 master_sites googlecode 20 distname ${name}-${version}-Source 17 21 18 homepage http://synergy-foss.org/ 19 master_sites sourceforge 20 master_sites.mirror_subdir ${sf_proj} 22 checksums sha1 0f67dc4a221dc0db74ec8a35d3dd578e9d76eccc \ 23 rmd160 5f28bd102293437481a8c5808d5cbfc8722ee1ae 21 24 22 checksums md5 a6e09d6b71cb217f23069980060abf27 25 # Force 32-bit, all kinds of Carbon cruft in here. (#20908) 26 supported_archs i386 ppc 23 27 24 configure.args --sysconfdir=${prefix}/etc/${name} 25 patchfiles patch-CArchFileUnix.cpp.diff patch-configure.diff 28 patchfiles patch-CArchFileUnix.cpp.diff 29 30 # See http://synergy-foss.org/pm/issues/57 31 patchfiles-append patch-bug57-keypress.diff \ 32 patch-bug57-modifiers.diff 26 33 27 34 post-patch { 28 reinplace "s|__SYSCONFDIR|${prefix}/etc/${name}|g" ${worksrcpath}/lib/arch/CArchFileUnix.cpp 35 # Set default config path 36 reinplace "s|@@SYSCONFDIR@@|${prefix}/etc/${name}|g" ${worksrcpath}/src/lib/arch/CArchFileUnix.cpp 37 38 # Fix build architectures 39 reinplace "s:CMAKE_OSX_ARCHITECTURES \"ppc;i386\":CMAKE_OSX_ARCHITECTURES \"[join [get_canonical_archs] ;]\":" ${worksrcpath}/CMakeLists.txt 29 40 } 30 41 31 variant server { 32 startupitem.create yes 33 startupitem.name Synergy 34 startupitem.start "${prefix}/bin/synergys --daemon &" 35 startupitem.stop "/usr/bin/killall synergys" 42 destroot { 43 # xinstall -d ${destroot}${prefix}/bin 44 xinstall -m 755 ${worksrcpath}/bin/synergyc ${destroot}${prefix}/bin 45 xinstall -m 755 ${worksrcpath}/bin/synergys ${destroot}${prefix}/bin 46 xinstall -m 644 ${worksrcpath}/doc/synergyc.man ${destroot}${prefix}/share/man/man1/synergyc.1 47 xinstall -m 644 ${worksrcpath}/doc/synergys.man ${destroot}${prefix}/share/man/man1/synergys.1 48 # xinstall -d ${destroot}${prefix}/etc/${name} 49 xinstall -m 644 -W ${worksrcpath}/doc/ \ 50 synergy.conf.example \ 51 synergy.conf.example-advanced \ 52 synergy.conf.example-basic \ 53 ${destroot}${prefix}/etc/${name} 36 54 } 37 55 38 post-destroot { 39 xinstall -m 755 -d ${destroot}${prefix}/etc/${name} 40 xinstall -m 644 -c ${worksrcpath}/examples/synergy.conf \ 41 ${destroot}${prefix}/etc/${name}/synergy.conf.sample 42 } 43 44 livecheck.name ${sf_proj} 45 livecheck.regex <title>Sources (.*) released.*</title> 46 47 # Force 32-bit, all kinds of Carbon cruft in here. (#20908) 48 supported_archs i386 ppc 56 startupitem.create yes 57 startupitem.name Synergy 58 startupitem.executable "${prefix}/bin/synergys --no-daemon" -
users/raimue/ports/sysutils/synergy/files/patch-CArchFileUnix.cpp.diff
r21501 r83211 1 --- lib/arch/CArchFileUnix.cpp.orig Wed Feb 9 13:29:56 20052 +++ lib/arch/CArchFileUnix.cpp Wed Feb 9 13:30:27 20053 @@ -8 0,7 +80,7 @@1 --- src/lib/arch/CArchFileUnix.cpp.orig Wed Feb 9 13:29:56 2005 2 +++ src/lib/arch/CArchFileUnix.cpp Wed Feb 9 13:30:27 2005 3 @@ -83,7 +83,7 @@ 4 4 std::string 5 5 CArchFileUnix::getSystemDirectory() 6 6 { 7 7 - return "/etc"; 8 + return " __SYSCONFDIR";8 + return "@@SYSCONFDIR@@"; 9 9 } 10 10
Note: See TracChangeset
for help on using the changeset viewer.

