aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils/debian.pp
blob: a0350801dada44201399bb652339883b3d2f9ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
class utils::personal::debian {
  # System
  package { [ 'libpam-mount', 'ecryptfs-utils', 'openjdk-6-jre', 'gawk',
              'sun-java6-jre', ]:
    ensure => installed,
  }

  # Multimedia
  package { [ 'alsa-tools-gui',  'mp3blaster',          'alsa-utils', 'netpbm',
              'gqview',          'mpg123',              'audacious',  'qjackctl',
              'gimp',            'xine-ui',             'amarok',     'wodim',
              'genisoimage',     'dvd+rw-tools',        'inkscape',   'jhead',
              'easytag',         'flashplugin-nonfree', 'vlc',        'audacity',
              'opencubicplayer', 'moc',                 'cmus',       'orpheus',
              'cbrpager',        'llgal',               'darksnow' ]:
    ensure => installed,
  }

  # Interface
  package { [ 'awesome', 'eterm',            'fluxbox',           'gdm',          'conky',
              'xterm',   'bash-completion',  'xfonts-terminus',   'xscreensaver', 'rxvt-unicode',
              'mc',      'gtk-theme-switch', 'gtk-smooth-themes', 'rxvt' ]:
    ensure => installed,
  }

  # Office
  package { [ 'wyrd',                'vim-gtk',             'gobby',
              'sc',                  'antiword',            'broffice.org',
              'kalarm',              'texlive-latex-base',  'texlive-latex-recommended',
              'texlive-latex-extra', 'pandoc',              'gnumeric',
              'cups-client',         'hplip',               'cups-bsd',
              'gnucash' ]:
    ensure => installed,
  }

  # Network
  package { [ 'mutt',              'irssi',      'offlineimap',      'epiphany-browser',
              'newsbeuter',        'bitlbee',    'nicotine',         'silc',
              'irssi-plugin-silc', 'bogofilter', 'fetchmail',        'procmail',
              'msmtp',             'mairix',     'konqueror',        'bittorrent',
              'irssi-scripts',     'links',      'twinkle',          'bittornado',
              'rtorrent',          'iceweasel',  'irssi-plugin-otr', 'transmission' ]:
    ensure => installed,
  }

  # Security
  package { [ 'apg',          'gnupg-agent', 'makepasswd', 'pwgen', 'fpm2', 'encfs',
              'signing-party' ]:
    ensure => installed,
  }

  # Development
  package { [ 'debhelper', 'gitk',      'git-gui',         'subversion', 'python-stdeb',
              'fakeroot',  'dupload',   'autotools-dev',   'dh-make',    'doxygen',
              'tig',       'mercurial', 'exuberant-ctags', 'reportbug'   'debian-keyring' ]:
    ensure => installed,
  }

  # Other
  package { [ 'fortunes-br', 'unrar', 'recode', 'figlet', 'p7zip-full', 'unison' ]:
    ensure => installed,
  }

  # Java alternative
  file { "/etc/alternatives/java":
    ensure  => "/usr/lib/jvm/java-6-sun/jre/bin/java",
    owner   => root,
    group   => root,
    require => Package['sun-java6-jre'],
  }

  # Lenny only
  package { [ 'mozilla-firefox-adblock' ]:
    ensure => $lsbdistcodename ? {
      'lenny' => present,
      default => absent,
    },
  }

  # Squeeze (or newer) packages
  if $lsbdistcodename != 'lenny' {
    package { [ 'xul-ext-monkeysphere', 'chromium-browser', 'libical-parser-perl',
                'maildir-utils',        'icedtea6-plugin',  'xul-ext-firegpg' ]:
      ensure => installed,
    }
  }

  # Gem packages
  package { 'capistrano':
    ensure   => installed,
    provider => gem,
    require  => Package['rubygems'],
  }

  # Gem packages
  package { 'slideshow':
    ensure   => installed,
    provider => gem,
    require  => Package['rubygems'],
  }

  if !defined(Package['ruby']) {
    package { 'ruby':
      ensure => installed,
    }
  }

  if !defined(Package['rubygems']) {
    package { 'rubygems':
      ensure  => installed,
      require => Package['ruby'],
    }
  }

  if !defined(Package['ruby-dev']) {
    package { 'ruby-dev':
      ensure  => installed,
      require => Package['ruby'],
    }
  }

  if !defined(Package['libgpgme-ruby1.8']) {
    package { 'libgpgme-ruby1.8':
      ensure  => installed,
      require => Package['ruby'],
    }
  }

  # Flash alternative
  file { "/etc/alternatives/flash-mozilla.so":
    ensure  => "/usr/lib/flashplugin-nonfree/libflashplayer.so",
    owner   => root,
    group   => root,
    require => Package['flashplugin-nonfree'],
  }
}