aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils/debian.pp
blob: 727e5c6811bc05a11955c0ea394edf7de5e87909 (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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
class utils::personal::debian {
  # System
  package { [ 'libpam-mount',  'ecryptfs-utils', 'openjdk-6-jre', 'gawk',
              'sun-java6-jre', 'laptop-detect',  'syslinux' ]:
    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',   'mplayer' ]:
    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',             'worklog' ]:
    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',
              'openvpn',            'amule',          'pssh',             'pidgin',
              'pidgin-encryption',  'pidgin-openpgp', 'pidgin-otr',       'pidgin-privacy-please',
              'pidgin-plugin-pack', 'sslscan' ]:
    ensure => installed,
  }

  # Security
  package { [ 'apg',           'gnupg-agent', 'makepasswd', 'pwgen', 'fpm2', 'encfs',
              'signing-party', 'libnss3-tools' ]:
    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',
              'devscripts', 'pbuilder',     'build-essential', 'pnopaste-cli', 'agave',
              'cdbs',       'dh-buildinfo', 'quilt' ]:
    ensure => installed,
  }

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

  # Custom: might not be available in the official repositories
  package { [ 'kedpm', 'torchat' ]:
    ensure => installed,
  }

  # 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', ]:
      ensure => installed,
    }

    # See http://tails.boum.org/bugs/FireGPG_may_be_unsafe/
    package { 'xul-ext-firegpg':
      ensure => absent,
    }
  }

  # 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'],
  }

  # Browser alternative
  file { "/etc/alternatives/x-www-browser":
    ensure  => "/usr/bin/iceweasel",
    owner   => root,
    group   => root,
    require => Package['iceweasel'],
  }

  # Browser alternative: manpage
  file { "/etc/alternatives/x-www-browser.1.gz":
    ensure  => "/usr/share/man/man1/iceweasel.1.gz",
    owner   => root,
    group   => root,
    require => Package['iceweasel'],
  }

  # 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'],
  }
}