Create /etc/ceph/ceph.conf
[global]
auth cluster required = none
auth service required = none
auth client required = none
pkgs.callPackage ./generic.nix (rec { | |
version = "10.2.7"; | |
src = pkgs.fetchgit { | |
url = "https://github.com/ceph/ceph.git"; | |
rev = "refs/tags/v${version}"; | |
sha256 = "0q49mkkphl2wlvbix09kbyj9sgv838zhi96dx3zs79kqmacn2mm6"; | |
}; | |
patches = [ ./fix-pythonpath.patch ]; |
diff -uwr a/src/ceph-detect-init/Makefile.am b/src/ceph-detect-init/Makefile.am | |
--- a/src/ceph-detect-init/Makefile.am 2017-05-22 21:37:40.616023663 +0800 | |
+++ b/src/ceph-detect-init/Makefile.am 2017-05-22 22:11:14.728173931 +0800 | |
@@ -69,12 +69,13 @@ | |
if test "$(DESTDIR)" ; then \ | |
if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ | |
options=--install-layout=deb ; \ | |
- else \ | |
- options=--prefix=/usr ; \ | |
fi ; \ |
{ stdenv, ensureNewerSourcesHook, autoconf, automake, makeWrapper, pkgconfig | |
, libtool, which, git | |
, boost, python2Packages, libxml2, zlib | |
# Optional Dependencies | |
, snappy ? null, leveldb ? null, yasm ? null, fcgi ? null, expat ? null | |
, curl ? null, fuse ? null, accelio ? null, libibverbs ? null, librdmacm ? null | |
, libedit ? null, libatomic_ops ? null, kinetic-cpp-client ? null | |
, rocksdb ? null, libs3 ? null |
(defvar my-smtp-list | |
'(("aa@bb" "AA BB") | |
("cc@dd" "西西滴滴") | |
("ee@ff" "EeFf")) | |
"A list of smtp account.") | |
(defun my-complete-sender () | |
"Complete email sender, from `my-smtp-list'." | |
(interactive) | |
(let* ((lst (mapcar |