github.com/mackerelio/mackerel-agent-plugins@v0.89.3/packaging/deb-v2/debian/rules (about) 1 #!/usr/bin/make -f 2 3 %: 4 dh $@ 5 6 # This variable must be the same as the value of the `Package:` field in the control file. 7 package=mackerel-agent-plugins 8 9 override_dh_builddeb: 10 dh_builddeb -- -Zxz 11 12 override_dh_auto_install: 13 dh_auto_install 14 install -d -m 755 debian/${package}/usr/bin 15 install -m 755 debian/mackerel-plugin debian/${package}/usr/bin/mackerel-plugin 16 for i in accesslog apache2 aws-ec2-ebs conntrack docker elasticsearch fluentd gostats h2o haproxy inode jmx-jolokia jvm linux mailq memcached mongodb multicore munin mysql nginx openldap php-apc php-fpm php-opcache plack postgres proc-fd rabbitmq redis sidekiq snmp solr squid td-table-count trafficserver twemproxy unicorn uptime uwsgi-vassal varnish; do \ 17 ln -s ./mackerel-plugin debian/${package}/usr/bin/mackerel-plugin-$$i; \ 18 done