added network-protocol-xmpp and -DWITH_XMPP
This commit is contained in:
		
					parent
					
						
							
								269344ae71
							
						
					
				
			
			
				commit
				
					
						2c788a28a1
					
				
			
		
					 5 changed files with 12 additions and 3 deletions
				
			
		
							
								
								
									
										2
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -7,7 +7,7 @@ BASEFLAGS=-Wall $(IGNORE) -outputdir $(GIT_ANNEX_TMP_BUILD_DIR) -IUtility
 | 
			
		|||
# you can turn off some of these features.
 | 
			
		||||
#
 | 
			
		||||
# If you're using an old version of yesod, enable -DWITH_OLD_YESOD
 | 
			
		||||
FEATURES?=$(GIT_ANNEX_LOCAL_FEATURES) -DWITH_ASSISTANT -DWITH_S3 -DWITH_WEBAPP -DWITH_PAIRING
 | 
			
		||||
FEATURES?=$(GIT_ANNEX_LOCAL_FEATURES) -DWITH_ASSISTANT -DWITH_S3 -DWITH_WEBAPP -DWITH_PAIRING -DWITH_XMPP
 | 
			
		||||
 | 
			
		||||
bins=git-annex
 | 
			
		||||
mans=git-annex.1 git-annex-shell.1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								debian/control
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								debian/control
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -40,6 +40,7 @@ Build-Depends:
 | 
			
		|||
	libghc-network-multicast-dev,
 | 
			
		||||
	libghc-network-info-dev,
 | 
			
		||||
	libghc-safesemaphore-dev,
 | 
			
		||||
	libghc-network-protocol-xmpp-dev,
 | 
			
		||||
	ikiwiki,
 | 
			
		||||
	perlmagick,
 | 
			
		||||
	git,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								debian/rules
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								debian/rules
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -2,9 +2,9 @@
 | 
			
		|||
 | 
			
		||||
ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 | 
			
		||||
ifeq (install ok installed,$(shell dpkg-query -W -f '$${Status}' libghc-yesod-dev 2>/dev/null))
 | 
			
		||||
export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_OLD_YESOD -DWITH_WEBAPP -DWITH_PAIRING
 | 
			
		||||
export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_OLD_YESOD -DWITH_WEBAPP -DWITH_PAIRING -DWITH_XMPP
 | 
			
		||||
else
 | 
			
		||||
export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_PAIRING
 | 
			
		||||
export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_PAIRING -DWITH_XMPP
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
%:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,6 +42,7 @@ quite a lot.
 | 
			
		|||
  * [clientsession](http://hackage.haskell.org/package/clientsession)
 | 
			
		||||
  * [network-multicast](http://hackage.haskell.org/package/network-multicast)
 | 
			
		||||
  * [network-info](http://hackage.haskell.org/package/network-info)
 | 
			
		||||
  * [network-protocol-xmpp](http://hackage.haskell.org/package/network-protocol-xmpp)
 | 
			
		||||
* Shell commands
 | 
			
		||||
  * [git](http://git-scm.com/)
 | 
			
		||||
  * [uuid](http://www.ossp.org/pkg/lib/uuid/)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,6 +43,9 @@ Flag Webapp
 | 
			
		|||
Flag Pairing
 | 
			
		||||
  Description: Enable pairing
 | 
			
		||||
 | 
			
		||||
Flag XMPP
 | 
			
		||||
  Description: Enable notifications using XMPP
 | 
			
		||||
 | 
			
		||||
Executable git-annex
 | 
			
		||||
  Main-Is: git-annex.hs
 | 
			
		||||
  Build-Depends: MissingH, hslogger, directory, filepath,
 | 
			
		||||
| 
						 | 
				
			
			@ -91,6 +94,10 @@ Executable git-annex
 | 
			
		|||
    Build-Depends: network-multicast, network-info
 | 
			
		||||
    CPP-Options: -DWITH_PAIRING
 | 
			
		||||
 | 
			
		||||
  if flag(XMPP) && flag(Assistant)
 | 
			
		||||
    Build-Depends: network-protocol-xmpp
 | 
			
		||||
    CPP-Options: -DWITH_XMPP
 | 
			
		||||
 | 
			
		||||
Test-Suite test
 | 
			
		||||
  Type: exitcode-stdio-1.0
 | 
			
		||||
  Main-Is: test.hs
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue