Compare commits
2 Commits
b552e6ec02
...
7d195b48c6
Author | SHA1 | Date |
---|---|---|
7u83 | 7d195b48c6 | |
7u83 | b64170d20b |
|
@ -26,6 +26,9 @@ define wmdeit_install::program(
|
||||||
$exec = "$extract_path/$extract_dir/$program",
|
$exec = "$extract_path/$extract_dir/$program",
|
||||||
$exec_path = "$extract_path/$extract_dir",
|
$exec_path = "$extract_path/$extract_dir",
|
||||||
|
|
||||||
|
$generic_name = "$program",
|
||||||
|
$comment = "$program",
|
||||||
|
|
||||||
){
|
){
|
||||||
|
|
||||||
file {$extract_path:
|
file {$extract_path:
|
||||||
|
@ -58,32 +61,3 @@ define wmdeit_install::program(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class wmdeit_install::commonist
|
|
||||||
{
|
|
||||||
# commonist
|
|
||||||
file {'/opt/wikimedia/commonist':
|
|
||||||
ensure => directory,
|
|
||||||
require => File['/opt/wikimedia']}
|
|
||||||
file {'/opt/wikimedia/commonist/commonist.zip':
|
|
||||||
ensure => present,
|
|
||||||
links => follow,
|
|
||||||
source => 'puppet:///downloads/packages/commonist/commonist.zip',
|
|
||||||
require => File['/opt/wikimedia/commonist']}
|
|
||||||
file {'/opt/wikimedia/commonist/commonist.desktop':
|
|
||||||
ensure => present,
|
|
||||||
source => 'puppet:///downloads/packages/commonist/commonist.desktop',
|
|
||||||
require => File['/opt/wikimedia/commonist']}
|
|
||||||
file {'/opt/wikimedia/commonist/commonist.svg':
|
|
||||||
ensure => present,
|
|
||||||
source => 'puppet:///downloads/packages/commonist/commonist.svg',
|
|
||||||
require => File['/opt/wikimedia/commonist']}
|
|
||||||
exec{'Unzip commonist':
|
|
||||||
command => '/usr/bin/unzip -o /opt/wikimedia/commonist/commonist.zip -d /opt/wikimedia/commonist',
|
|
||||||
creates => '/opt/wikimedia/commonist/commonist',
|
|
||||||
require => File['/opt/wikimedia/commonist/commonist.zip']}
|
|
||||||
exec{'Install commonist':
|
|
||||||
command => '/usr/bin/desktop-file-install --rebuild-mime-info-cache /opt/wikimedia/commonist/commonist.desktop',
|
|
||||||
creates => '/usr/share/applications/commonist.desktop',
|
|
||||||
require => Exec['Unzip commonist']}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
Type=Application
|
Type=Application
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Name=<%= @program %>
|
Name=<%= @program %>
|
||||||
GenericName=Upload-Werkzeug
|
GenericName=<%= @generic_name %>
|
||||||
Comment=Uploader für Wikimedia Commons
|
Comment=<%= @comment %>
|
||||||
Path=<%= @exec_path %>
|
Path=<%= @exec_path %>
|
||||||
Exec=<%= @exec %>
|
Exec=<%= @exec %>
|
||||||
Icon=<%= @extract_path %>/<%= @svg %>
|
Icon=<%= @extract_path %>/<%= @svg %>
|
||||||
|
|
Loading…
Reference in New Issue